Skip to content

Commit

Permalink
fix "400 bad request" when saving files (prasathmani#705)
Browse files Browse the repository at this point in the history
  • Loading branch information
rasteiner authored Jan 21, 2022
1 parent a231694 commit 6e75632
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tinyfilemanager.php
Original file line number Diff line number Diff line change
Expand Up @@ -3814,7 +3814,7 @@ function edit_save(e, t) {
url: window.location,
// The key needs to match your method's input parameter (case-sensitive).
data: JSON.stringify(data),
contentType: "multipart/form-data-encoded; charset=utf-8",
contentType: "application/json; charset=utf-8",
//dataType: "json",
success: function(mes){toast("Saved Successfully"); window.onbeforeunload = function() {return}},
failure: function(mes) {toast("Error: try again");},
Expand Down

0 comments on commit 6e75632

Please sign in to comment.