Coorection to avoid use of global variables in function
Attach a file by drag & drop or click to upload