perl rather than relying on the script to be executable.
Attach a file by drag & drop or click to upload