I write userscript for one site, which should simulate sending a form with a file. Is it even possible to upload a file to someone else’s site using js?
- You can send a file to a "foreign" site, but if no one is waiting for it there, then there will be no trace of it on the site (server?) - Igor
|
1 answer
As far as I know there are 2 options. 1st is using a hidden iframe, and the second is using a FormData object ... read it here: http://code.biz.ua/articles/file-send-formdata-jquery/
|