mirror of
https://github.com/prasathmani/tinyfilemanager.git
synced 2025-07-29 13:00:34 +02:00
fix "400 bad request" when saving files (#705)
This commit is contained in:
@@ -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");},
|
||||
|
Reference in New Issue
Block a user