rc-upload
Advanced tools
Comparing version 2.5.0 to 2.5.1
@@ -65,3 +65,3 @@ import _extends from 'babel-runtime/helpers/extends'; | ||
var ComponentUploader = this.getComponent(); | ||
return React.createElement(ComponentUploader, _extends({}, this.props, { directory: this.props.directory, ref: 'inner' })); | ||
return React.createElement(ComponentUploader, _extends({}, this.props, { ref: this.saveUploader })); | ||
} | ||
@@ -68,0 +68,0 @@ }]); |
@@ -99,3 +99,3 @@ 'use strict'; | ||
var ComponentUploader = this.getComponent(); | ||
return _react2['default'].createElement(ComponentUploader, (0, _extends3['default'])({}, this.props, { directory: this.props.directory, ref: 'inner' })); | ||
return _react2['default'].createElement(ComponentUploader, (0, _extends3['default'])({}, this.props, { ref: this.saveUploader })); | ||
} | ||
@@ -102,0 +102,0 @@ }]); |
{ | ||
"name": "rc-upload", | ||
"version": "2.5.0", | ||
"version": "2.5.1", | ||
"description": "upload ui component for react", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -64,2 +64,3 @@ # rc-upload | ||
|action| string | function(file): string | Promise<string> | | form action url | | ||
|directory| boolean | false | support upload whole directory | | ||
|data| object/function(file) | | other data object to post or a function which returns a data object | | ||
@@ -117,3 +118,3 @@ |headers| object | {} | http headers to post, available in modern browsers | | ||
In iframe uploader way, the content-type of response should be `text/plain` or `text/html`. [See more about | ||
In iframe uploader way, the content-type of response should be `text/plain` or `text/html`. [See more about | ||
Content-Type Negotiation](https://github.com/blueimp/jQuery-File-Upload/wiki/Setup#content-type-negotiation) | ||
@@ -120,0 +121,0 @@ |
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
67622
137