Socket
Socket
Sign inDemoInstall

rc-upload

Package Overview
Dependencies
Maintainers
4
Versions
137
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rc-upload - npm Package Compare versions

Comparing version 2.5.0 to 2.5.1

2

es/Upload.js

@@ -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 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc