2
0
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:
Elvis Tolotti 2021-12-01 12:11:03 -08:00 committed by GitHub
commit 5f285cefc2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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) {