In addition, I simplified the execution of the callback.
Attach a file by drag & drop or click to upload