Socket
Socket
Sign inDemoInstall

react-s3-uploader

Package Overview
Dependencies
Maintainers
1
Versions
59
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-s3-uploader - npm Package Compare versions

Comparing version 4.6.1 to 4.6.2

4

CHANGELOG.md
##### 4.6.2
* Fix `undefined` in file path when not providing `s3path` prop [#160]
##### 4.6.1

@@ -3,0 +7,0 @@

2

package.json
{
"name": "react-s3-uploader",
"version": "4.6.1",
"version": "4.6.2",
"description": "React component that renders a file input and automatically uploads to an S3 bucket",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -81,3 +81,3 @@ var uuidv4 = require('uuid/v4'),

router.get('/sign', middleware, function(req, res) {
var filename = req.query.path + (options.uniquePrefix ? uuidv4() + "_" : "") + req.query.objectName;
var filename = (req.query.path || '') + (options.uniquePrefix ? uuidv4() + "_" : "") + req.query.objectName;
var mimeType = req.query.contentType;

@@ -84,0 +84,0 @@ var fileKey = checkTrailingSlash(getFileKeyDir(req)) + filename;

@@ -81,3 +81,6 @@ /**

var fileName = this.scrubFilename(file.name);
var queryString = '?objectName=' + fileName + '&contentType=' + encodeURIComponent(file.type) + '&path=' + this.s3path;
var queryString = '?objectName=' + fileName + '&contentType=' + encodeURIComponent(file.type);
if (this.s3path) {
queryString += '&path=' + encodeURIComponent(this.s3path);
}
if (this.signingUrlQueryParams) {

@@ -84,0 +87,0 @@ var signingUrlQueryParams = typeof this.signingUrlQueryParams === 'function' ? this.signingUrlQueryParams() : this.signingUrlQueryParams;

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