mirror of
https://github.com/prasathmani/tinyfilemanager
synced 2024-06-08 00:42:19 +02:00
fix "400 bad request" when saving files
This commit is contained in:
parent
d125c6736b
commit
0eb3b650fc
|
@ -3814,7 +3814,7 @@ $isStickyNavBar = $sticky_navbar ? 'navbar-fixed' : 'navbar-normal';
|
|||
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");},
|
||||
|
|
Loading…
Reference in a new issue