rc-upload
Advanced tools
Comparing version 1.8.0 to 1.8.1
@@ -1,3 +0,8 @@ | ||
### 1.8.0 2015-01-14 | ||
### 1.8.1 2016-03-16 | ||
- fix InvalidStateError in IE 10 | ||
- fix #30 | ||
### 1.8.0 2016-01-14 | ||
- support custom XHR headers | ||
@@ -4,0 +9,0 @@ |
@@ -45,3 +45,3 @@ 'use strict'; | ||
var formData = new FormData(); | ||
formData.append(option.filename, option.file); | ||
if (option.data) { | ||
@@ -53,2 +53,4 @@ Object.keys(option.data).map(function (key) { | ||
formData.append(option.filename, option.file); | ||
xhr.onerror = function error(e) { | ||
@@ -66,2 +68,5 @@ option.onError(e); | ||
xhr.open('post', option.action, true); | ||
// Has to be after `.open()`. See https://github.com/enyo/dropzone/issues/179 | ||
if (option.withCredentials && 'withCredentials' in xhr) { | ||
@@ -71,3 +76,2 @@ xhr.withCredentials = true; | ||
xhr.open('post', option.action, true); | ||
xhr.setRequestHeader('X-Requested-With', 'XMLHttpRequest'); | ||
@@ -74,0 +78,0 @@ var headers = option.headers || {}; |
{ | ||
"name": "rc-upload", | ||
"version": "1.8.0", | ||
"version": "1.8.1", | ||
"description": "upload ui component for react", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
19153
425