1đź‘Ť
âś…
The upload script runs in Javascript and it needs a browser (client-side). Since you are doing the process from python (server-side), the Javascript won’t run.
What I’d do is to use Firebug in the browser, and inspect the request that is sent when you actually upload the file (also reading the Javascript function may help understanding what a client browser normally does in order to upload that file).
You then can use python-requests to do an equivalent POST from python (including all necessary parameters). Note, however, that since you are sending a file, you may need to post a “multipart-encoded” file: http://www.python-requests.org/en/latest/user/quickstart/#post-a-multipart-encoded-file .
👤jjmontes
Source:stackexchange.com