Skip to main content
The 2024 Developer Survey results are live! See the results

All Questions

Tagged with
0 votes
3 answers
1k views

How to get an image with a NodeJS server and Angular Front?

I have a problem... When I try to get an image that is saved on the server to view on the frontend, routes fail. When I register one user, I save the user image in the server by Multer and I save the ...
user avatar
0 votes
1 answer
53 views

image get upload successfully in folder. it is not displayed immediately when that page renders

when I am uploading a new image its not displaying and giving 404 error. all previous upload image is displaying. it is not displaying immediately. when I off server then restart it display that. I am ...
Mandeep Jain's user avatar
0 votes
1 answer
49 views

How to display image files stored in mongoDB when an action is performed

I m building a form which accepts file as input (attchment) and display current attachments of a specific user. As part of this, i am getting attachment data once my component is loaded. base64,255,...
kalyan veenam's user avatar
0 votes
0 answers
200 views

Multer posting twice when creating data

I don't know why multer post my data twice here, What is wrong here? This outputs 2 results in my mongodb. I've been following solutions but it doesn't do anything, any help var storage = multer....
Jeremy Adrian de Vera's user avatar
0 votes
0 answers
179 views

How to upload using multer then store path in mongodb

I'm having a hard time following some tutorials on how to use multer for uploading image, I can't find an answer on how to upload image in a certain folder then save the path in mongodb, and display ...
Godshand's user avatar
  • 621
0 votes
0 answers
735 views

Reconstructing a chunked file in Node.js

I am working on a angularjs / nodejs (express) stack. In this project, I have to upload large binary file (~150mb) from the client to server. Due to a company proxy limitation, we have to chunk the ...
Antoine Guittet's user avatar
1 vote
1 answer
3k views

upload multiple files with multer?

I just can't figured whats wrong why my codes below. I try to upload multiple files. The problem is that i had an "UNEXPECTED FIELD" I can make it to upload single file just fine, but I can't make it ...
Phil's user avatar
  • 939
0 votes
0 answers
82 views

Unable to send file to server from AngularJS with access token and ng-file-upload

I'm using AngularJS 1.6 to send a file to the server. The server uses Multer to read the files and I am providing a secure access token on each file uploaded. The project uses the ng-file-upload ...
DunderheadDummy's user avatar
-1 votes
1 answer
366 views

I need to upload a file to server using angularJS, NodeJS and ExpressJS

I tried following this link https://ciphertrick.com/2015/12/07/file-upload-with-angularjs-and-nodejs/ but got error Node version is 4.4.7, modulerr error in ngFileUpload For file upload in app.js ...
Janani S's user avatar
0 votes
2 answers
3k views

passing extra info to multer Upload API

I am using the multer way for upload in node.js, explained in detail here https://ciphertrick.com/2015/12/07/file-upload-with-angularjs-and-nodejs/ I am trying to pass another information with ...
user avatar
1 vote
1 answer
226 views

multer "req.file" is undefined for http request from script but working with html form tag

I've built a simple file uploader using multer on Node.js. It is working fine when I upload the file with html form tag like this : <form id="uploadForm" enctype="multipart/form-data" method="...
Supradeep's user avatar
  • 3,266
1 vote
0 answers
273 views

MEAN Stack Angular js - Multer upload returns http post invalid http response

I'm trying to upload an image file using npm multer in MEAN stack programming environment. The Google Chrome browser error console prints 'POST http://localhost:3000/api/users/upload net::...
Alvin Glenn Flamiano's user avatar
2 votes
0 answers
392 views

How to send a considerably large file of any format from express NodeJS server to Django server

I have written this code to send a file using a port from NodeJS server to Django server using multer and Custom Directives from AngularJS const multerConf = { storage:multer.diskStorage({ ...
hondvryer's user avatar
  • 442
6 votes
3 answers
2k views

Not able to get form-data sent from angular to node server

I am sending form-data along with image-data. But I am unable to get data on the node server when sent inside FormData. I could see data on the angular controller on console.log. angular code: $...
mayank bisht's user avatar
0 votes
1 answer
213 views

ng-model from angular ng-file-upload for mongodb name of file uploaded

Hello i have a problem with upload photo in mean stack by rest api. Upload already works fine but i have question of how in my solution pass name of file uploaded to mongodb. here is my code for ...
Piotr Bieszczad's user avatar

15 30 50 per page
1
2 3 4 5 6