Skip to content

Fixed file/add method broken due to API update#4

Open
kireevmp wants to merge 3 commits into
FlickerLogicalStack:masterfrom
kireevmp:master
Open

Fixed file/add method broken due to API update#4
kireevmp wants to merge 3 commits into
FlickerLogicalStack:masterfrom
kireevmp:master

Conversation

@kireevmp

Copy link
Copy Markdown

Commit changes upload url and includes two query params (probably optional, but not sure).

Some cloud.mail.ru updates have changed the upload url in the past 3 years, so now it is up to date and working.

Changed upload url and included query params
- Loading CSRF-token from server
- Setting proper header in session

cm.load_csrf must be called manually if cookies are restored from file
Unfortunately, it is not possible to upload files using multipart/form-data anymore. One should upload file directly, in request body, as well as provide proper 'Content-Type' header.
As far as I know, current setup works without any major flaws.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant