Socket
Socket
Sign inDemoInstall

rc-upload

Package Overview
Dependencies
Maintainers
3
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 1.5.6 to 1.5.7

6

lib/IframeUploader.js

@@ -6,2 +6,3 @@ 'use strict';

var Align = require('rc-align');
var iframeCount = 0;

@@ -20,2 +21,3 @@ var IframeUploader = React.createClass({

getInitialState: function getInitialState() {
this.iframeCount = iframeCount++;
return {

@@ -156,3 +158,3 @@ uid: 1,

try {
this.file.name = this.file.name || e.target.value;
this.file.name = e.target.value;
this.file.uid = uid();

@@ -192,3 +194,3 @@ } catch (ex) {

getIframeName: function getIframeName() {
return 'iframe_uploader_' + this.state.uid;
return 'iframe_uploader_' + this.iframeCount + '_' + this.state.uid;
},

@@ -195,0 +197,0 @@

{
"name": "rc-upload",
"version": "1.5.6",
"version": "1.5.7",
"description": "upload ui component for react",

@@ -5,0 +5,0 @@ "keywords": [

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