Don't hook into the url-file-handler since it currently breaks all non-HTTP URLs.
Attach a file by drag & drop or click to upload