Creates a function to find the last offset and remove it if repeated
Attach a file by drag & drop or click to upload