Questions tagged [multer]

Multer is a node.js component used to handle multipart/form-data uploads.

Multer is a middleware for handling multipart/form-data, which is primarily used for uploading files. It is written on top of for maximum efficiency.

Multer will not process any form which is not multipart (multipart/form-data).

Github repo expressjs/multer.

Github repo busboy

3186 questions
1
vote
1 answer

Express JS 4.x Multer Basic Upload

I'm trying to upload an image in Express JS using the Multer middleware, but running into several issues when trying to set up the absolute simplest use case. The only error I'm receiving is: 'POST /upload 500', and my POST callback is never…
Adam
  • 877
  • 2
  • 10
  • 24
1
vote
1 answer

NodeJS Multer: configuration not applied

I have a simple upload application written in NodeJS using Multer, which works fine. Here's the code: var express = require('express'), bodyParser = require('body-parser'), qs = require('querystring'), multer = require('multer'), …
Flock Dawson
  • 1,842
  • 4
  • 22
  • 34
1
vote
0 answers

failed uploading file using Express4 and multer

I am trying to do the image ajax upload using Express4 and multer, but it doesn't work here is my request screenshot and here is the server script var multer = require('multer'); var upload = multer({ dest: 'uploads/' }); var router =…
vikingmute
  • 412
  • 2
  • 10
  • 24
1
vote
1 answer

Can't get xlsx to JSON converter to work properly in Node/Express

I am using the package below to try to convert uploaded excel files (.xlsx) to JSON files on my Express web application: https://www.npmjs.com/package/xlsx-to-json So here is my form for the user to upload: form(id = "form1",…
John Doe
  • 205
  • 6
  • 17
1
vote
1 answer

Azure Website - NodeJS - Crash

We have an Azure Website under the S1 hosting plan running a Node app and connecting to DocumentDB. Every time we attempt to upload media into DocumentDB, the node.exe process crashes and restarts. It doesn't seem to matter the size of the…
1
vote
0 answers

NodeJS: server responds extremely slowly while uploading 5+ photos

When I'm uploading more than 5 photos at same time (5 multipart/form-data request), during its process, any GET request has ~500ms delay, any Socket.io event has ~1500ms delay. Is this normal? I tried with Multer and Multiparty as upload middleware,…
Maria
  • 3,455
  • 7
  • 34
  • 47
1
vote
1 answer

What is wrong with Nodejs?

I am using multer to handle upload image. app.use(multer({ dest: './public/photos', rename: function (fieldname, filename) { return filename+Date.now(); }, onFileUploadStart: function (file) { …
Vo Thanh Thang
  • 330
  • 1
  • 5
  • 16
1
vote
1 answer

How to handle expressjs middleware request. POST request remains pending made by dropzone

I am using dropzone to upload the file. On the server side I am using node and expressjs. I am also using multer as the file handling middleware. dropzone makes a call to one endpoint to save the file on the server. On the server side, I created an…
SharpCoder
  • 18,279
  • 43
  • 153
  • 249
1
vote
3 answers

Post file from one server to another,using node.js , needle , busboy/multer

I would like to move a small image from one server to another (both running node). As I search, I haven't found enough. This post remains unanswered. As I started experimenting I wrote the following to the first server : app.post("/move_img",…
cs04iz1
  • 1,737
  • 1
  • 17
  • 30
1
vote
1 answer

POST and GET images to/out of MongoDB in Angular

I´m making an angular application, which gives users the possibilities, to manage their projects. I´ve got nodeJS & express serveside and MongoDB as my database. I want to achieve, that a user can upload media(images under 16MB, so no need to use…
David Nnamremmiz
  • 191
  • 1
  • 2
  • 13
1
vote
2 answers

node js multer file upload not working when started with ubuntu upstart

I have a VPS(ubuntu 14.04) and a nodejs app with multer for handler file upload and it works find when I start the server via node ex."node my-server.js" but not if I start via upstart ex."sudo start node-app" node-app is a ubuntu upstart conf file…
diegoddox
  • 593
  • 7
  • 23
1
vote
1 answer

(Express js 4 Multer) check form fields (if empty) before file upload

I was to check if form fields are empty and if name is changed before uploading file but multer first upload the file and then req.body is filled. I am using multer as a middleware. Upload.js checkField: function(req, res, next) { //Here i want…
Noobish
  • 1,107
  • 1
  • 14
  • 23
1
vote
2 answers
1
vote
1 answer

Multer, Node, EACCES error on C9.io

Hiya all thanks in advance for any help you can provide. I am using C9.io, node, express, multer, gridfs-stream. And Im getting: /home/ubuntu/workspace/node_modules/multer/index.js:25 mkdirp(dest, function(err) { if (err) throw err; }); Error:…
jsrosas
  • 103
  • 2
  • 14
1
vote
2 answers

File Upload hangs with Multer in Krakenjs application

I am using multer (^0.1.6) in a Nodejs Kraken application to upload a file. I looked at the multer documentation on npm and it seemed it's pretty straightforward to use this module for file upload. But I have been facing issues while uploading file…
Prabhash Rathore
  • 709
  • 10
  • 18