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