Merge pull request #1 from elviscristiano/change_formdata_format

Change 1st formData parameter
pull/368/head
Elvis Tolotti 3 years ago committed by GitHub
commit 5f285cefc2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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…
Cancel
Save