Questions tagged [multer-s3]

Questions related to streaming multer storage engine for AWS S3.

175 questions
0
votes
2 answers

Access denied fetching images from amazon s3 with full permissions set

I have updated the bucket policy: { "Version": "2012-10-17", "Statement": [ { "Sid": "Stmt1536491056397", "Effect": "Allow", "Principal": "*", "Action": "s3:*", "Resource":…
kittu
  • 5,835
  • 18
  • 72
  • 142
0
votes
1 answer

SyntaxError: Unexpected token - in JSON at position 0,While uploading pdf files in postman

Controller.js var multer = require('multer'); var upload = (req, res) => { var storage = multer.diskStorage({ destination: function (req, file, cb) { cb(null, './uploads/'); }, filename: function (req, file,…
uma
  • 21
  • 6
0
votes
2 answers

rename uploaded Images on Multer-s3

OVERVIEW: I'm using S3 to let users upload images. I'm working on an update route using a PUT method, which takes the url of a given image stored on a temp folder in S3 bucket and removes it to an images folder. here is my upload object: const…
ACEY
  • 1
  • 1
0
votes
3 answers

reactjs: Cannot pass file to node backend by react

I'm trying to send an image to backend through form field in React. I'm first assigning the state to empty like this in my constructor class this.state = { image: "", } I'm then making a handleChange function for both image and normal text…
Barry Bonds
  • 108
  • 2
  • 10
0
votes
1 answer

Uploading file to Digitalocean Spaces with Multer MulterS3 and AWS SDK, NodeJS

I'm trying to upload files to my Digitalocean Space using an express API. The log in the below upload method never gets called, and the success status is always returned. In the route req.files the file comes through, but no file is uploaded. I…
samsjb
  • 11
  • 4
0
votes
1 answer

Multer unexpected field error handling

The route with my multer middleware goes something like this. router.post('my-route-path', multer.single('file'), controllerFunc) The multer function I have defined is to allow a single file uploaded to the file system. Everything works fine, the…
Adeel Imran
  • 8,751
  • 5
  • 45
  • 71
0
votes
1 answer

I am not able to upload large files using multer-s3. It is not giving me any error as well.

I am not able to upload large files using multer-s3. It is not giving me any error as well. It just doesn't upload the file, doesn't even enters the callback and gets timeout. Any way to handle uploading large files to s3 Bucket? I am using it like…
0
votes
1 answer

I'm try to upload file using node.js to aws but i don't know what went wrong with my code

app.js file: var aws = require('aws-sdk'), http = require('http'), bodyParser = require('body-parser'), fs = require('fs'), path = require('path'), methodOverride = require("method-override"), express =…
Norman1007
  • 11
  • 2
0
votes
1 answer

how to set a custom dirname for multer-imager

Anyone know how to set a custom folder name for multer-imager dirname field ? https://www.npmjs.com/package/multer-imager const imager = require('multer-imager'); var S3ReziseStorage = imager({ bucket: process.env.AWS_BUCKET_NAME, accessKeyId:…
me-me
  • 3,084
  • 5
  • 33
  • 57
0
votes
0 answers

Grant per user access to S3 bucket key using Multer-S3

I am uploading images to my S3 bucket via multer-s3. Everything is working fine, the images gets dropped in my bucket. var cloudStorage = multerS3({ s3: s3, bucket: 'mybucket', acl: 'bucket-owner-full-control', serverSideEncryption:…
jae.phoenix
  • 913
  • 7
  • 26
0
votes
1 answer

Upload with dynamic Filename - multer/s3

I use multer/multer-s3 to upload a Profilepicture to Amazon S3. The Upload works well when i use a static filename like 'userPhoto_' which matches the the fieldname in the form. var upload = multer({ storage: multerS3({ s3: s3, …
0
votes
1 answer

how to secure s3 files with trusted signed users using cloudfront aws-sign?

I need to secure my files which should not get directly played or downloaded in the browzer after copy pasting the link in the browzer. Below is my app.js file: var express = require('express'), aws = require('aws-sdk'), bodyParser =…
0
votes
1 answer

Securing s3 files ,Not to display the content when link is given directly in a browser?

I am using nodejs npm-multer s3 to upload my video/audio/image files to amazon s3 bucket. I am using the below policy to enable permission for viewing my files through my mobile application { "Version": "2008-10-17", "Statement": [ …
Jagadeesh
  • 1,104
  • 4
  • 21
  • 37
0
votes
1 answer

zero byte file is created in s3 while trying to resize and upload using multer in nodejs?

Below is my app.js file.. Whenever i make an attempt to resize and upload my image using multer-imager module a zero byte file is getting created everytime and i am not getting any response (keeps loading on post…
Jagadeesh
  • 1,104
  • 4
  • 21
  • 37
0
votes
1 answer

How to use multer-imager npm module in nodejs and upload my image resized to amazon s3 bucket?

/********app.js***********/ var express = require('express'), aws = require('aws-sdk'), bodyParser = require('body-parser'), multer = require('multer'), imager = require('multer-imager'), multerS3 = require('multer-s3'); var…
Jagadeesh
  • 1,104
  • 4
  • 21
  • 37
1 2 3
11
12