rc-upload
Advanced tools
Comparing version 1.7.1 to 1.7.2
@@ -0,1 +1,5 @@ | ||
### 1.7.2 2016-01-13 | ||
- add prop withCredentials config | ||
### 1.7.0 2015-10-27 | ||
@@ -2,0 +6,0 @@ |
@@ -28,3 +28,4 @@ 'use strict'; | ||
data: _react.PropTypes.object, | ||
beforeUpload: _react.PropTypes.func | ||
beforeUpload: _react.PropTypes.func, | ||
withCredentials: _react.PropTypes.bool | ||
}, | ||
@@ -109,2 +110,3 @@ | ||
data: data, | ||
withCredentials: props.withCredentials, | ||
onProgress: function onProgress(e) { | ||
@@ -111,0 +113,0 @@ props.onProgress(e, file); |
@@ -64,3 +64,3 @@ 'use strict'; | ||
if ('withCredentials' in xhr) { | ||
if (option.withCredentials && 'withCredentials' in xhr) { | ||
xhr.withCredentials = true; | ||
@@ -67,0 +67,0 @@ } |
@@ -38,3 +38,4 @@ 'use strict'; | ||
multiple: _react.PropTypes.bool, | ||
beforeUpload: _react.PropTypes.func | ||
beforeUpload: _react.PropTypes.func, | ||
withCredentials: _react.PropTypes.bool | ||
}, | ||
@@ -53,3 +54,4 @@ | ||
multiple: false, | ||
beforeUpload: null | ||
beforeUpload: null, | ||
withCredentials: false | ||
}; | ||
@@ -56,0 +58,0 @@ }, |
{ | ||
"name": "rc-upload", | ||
"version": "1.7.1", | ||
"version": "1.7.2", | ||
"description": "upload ui component for react", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -67,2 +67,3 @@ # rc-upload | ||
|beforeUpload| function |null| before upload check, return false or a rejected Promise will stop upload, only for modern browsers| | ||
| withCredentials | boolean | false | ajax upload with cookie send | | ||
@@ -69,0 +70,0 @@ #### onError arguments |
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
18595
414
98