I know that curl supports file upload e.g. here. Is it possible to upload files to site which has HTML5 Drag and Drop box for file uploading

  • What exactly you mean by HTML5 Drag and Drop box? – peterph Jan 22 '14 at 15:07
  • @peterph I mean area where you can upload file by dropping file from desktop – hawk Jan 22 '14 at 18:19
  • It's not possible to do that as a drag and drop operation with curl. You'd have to script it via the command line, but it should be scriptable. – slm Jan 22 '14 at 23:53
  • If you mean the standard file upload field (i.e. <input type="file" />, then it's not really HTML5 Drag and Drop. Merely the browser allows you to put a value in that field in a special manner. – peterph Jan 23 '14 at 17:06
  • @slm one can certainly pin together a simple drag'n'drop-capable application in a scripting language (Perl/Python/Ruby/...) which would call curl on it's input. – peterph Jan 23 '14 at 17:07

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.