Media (Page): Do not extend parent metehod for sending files since Safari and IE APIs for FormData don’t implement delete (fixes #772)

This commit is contained in:
Djamil Legato
2016-09-14 18:04:29 -07:00
parent 8e483f101b
commit 0512a7f4f6
3 changed files with 8 additions and 1 deletions

View File

@@ -3,6 +3,7 @@
1. [](#bugfix)
* Fix [#1034](https://github.com/getgrav/grav/issues/1034) redirect of page creation procedure when system.home.hide_in_urls is enabled
* Media (Page): Do not extend parent metehod for sending files since Safari and IE API for FormData dont implement `delete` ([#772](https://github.com/getgrav/grav-plugin-admin/issues/772))
# v1.2.2
## 09/08/2016

View File

@@ -65,8 +65,14 @@ export default class PageMedia extends FilesField {
}
onDropzoneSending(file, xhr, formData) {
/*
// Cannot call super because Safari and IE API don't implement `delete`
super.onDropzoneSending(file, xhr, formData);
formData.delete('task');
*/
formData.append('name', this.options.dotNotation);
formData.append('admin-nonce', config.admin_nonce);
}
onDropzoneComplete(file) {

File diff suppressed because one or more lines are too long