mirror of
https://github.com/Ionaru/easy-markdown-editor
synced 2025-09-24 16:40:55 -06:00
Change 1st formData parameter
This commit is contained in:
parent
598821b6bb
commit
24b5ae8c1c
@ -2356,7 +2356,7 @@ EasyMDE.prototype.uploadImage = function (file, onSuccess, onError) {
|
||||
}
|
||||
|
||||
var formData = new FormData();
|
||||
formData.append('image', file);
|
||||
formData.append('image[file]', file);
|
||||
|
||||
// insert CSRF token if provided in config.
|
||||
if (self.options.imageCSRFToken) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user