Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: "400 bad request" when saving files #705

Merged
merged 1 commit into from
Jan 21, 2022

Conversation

rasteiner
Copy link
Contributor

@rasteiner rasteiner commented Jan 20, 2022

In the file editor when saving the file, the request is sent with the header "contentType: "multipart/form-data-encoded; charset=utf-8", in reality though the data is formatted as JSON. On some servers this causes the request to be refused with a status "400: Bad Request" response.

This PR fixes the wrong header.

@prasathmani prasathmani merged commit 9b85951 into prasathmani:master Jan 21, 2022
michael-milette pushed a commit to michael-milette/moodle-local_tinyfilemanager that referenced this pull request Feb 8, 2022
ner00 pushed a commit to ner00/tinyfilemanager that referenced this pull request May 7, 2023
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.

2 participants