Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

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.8.0 to 1.8.1

7

HISTORY.md

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

8

lib/request.js

@@ -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": [

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