maybe just use property of delivery instead of script
Attach a file by drag & drop or click to upload