All Questions
Tagged with image-upload node.js
32 questions
2
votes
0
answers
151
views
Why I cant get images from the server after deploying on Vercel?
I can get Images locally when the server is running on my laptop. But I cant get images from the deployed server. The code of index.js:
require("dotenv").config();
const upload = require(&...
0
votes
2
answers
3k
views
NodeJS server side - file Expected UploadFile, received: <class 'str'>
having issues uploading file from NodeJs server side, found 100 posts and reasearches but nothing works, would appreciate any help.
Structure of the App
Front App - React Admin framework receving ...
0
votes
1
answer
272
views
Unable to upload ( image + user data ) from react to node.js backend
When i click the register button then the REGISTER_USER function is called and then it creates a form obj with all the data and post it to the backend . i don't know why it is giving 500 error , cors ...
2
votes
1
answer
1k
views
How to resolve "Connection refused (OS Error: Connection refused, errno = 111)" in Flutter app?
I'm encountering a "Connection refused" error in my Flutter app when uploading an image to a Node.js backend. The terminal and app errors are as follows:
Terminal Errors:
> Performing hot ...
3
votes
1
answer
2k
views
AWS S3 Uploading Image To Bucket - VERY Slow
I'm trying to upload an image to S3 with the Node AWS-SDK.
First I encode an image to BASE64 and then make a Buffer with Buffer.from. I then send the request to S3 with S3.upload or S3.PutObject.
It ...
0
votes
2
answers
1k
views
ReactJS: Image display not working correctly
So I have this scenario where I am uploading the images. On front end, its React Js and back end in Node Js. Images get uploaded fine but when I have to display them on front end it doesn't work.
I am ...
0
votes
1
answer
102
views
Node.js program exhibits image upload error
I made this post request that saves a title, description, solution and a photo in the database. Everything is required except for the photo. I am trying to make the image upload work but I am unable ...
-1
votes
1
answer
3k
views
How to convert request file to base64 string in nodejs
I have file coming in request.file object. If I console.log(request.file)
It prints
{
fieldname: 'file',
originalname: 'Screenshot from 2021-06-23 18-34-25.png',
encoding: '7bit',
mimetype: '...
1
vote
1
answer
1k
views
Image upload on cloudinary not working in heroku
I am using multer and cloudinary for image upload in node.js app. When I am in development mode, it works perfectly fine but after deploying to heroku, I am getting error in browser console as
the ...
-2
votes
1
answer
869
views
Save data from others API nodeJS
I have an API to read the information from an identity card (KYC) but this API from another part and I paid for the part to use this API (This API is "you take the picture of your ID card then ...
1
vote
0
answers
58
views
i'm using Node js and got problem in uploading two files with my backend code (an image and a pdf file )
I got actually this error (PS : i get the image and the pdf file in the uploads folder but nothing added in the data base):
TypeError: Cannot read property 'filename' of undefined
at CreatePost (...
2
votes
1
answer
763
views
paste an image (ctrl+v) to ngx-dropzone
Is there an option to paste an image into the drop zone of ngx-dropzone angular module ?
can I add (paste) event to it somehow?
ngx-dropzone
<div class="custom-dropzone" ngx-...
0
votes
1
answer
154
views
unable to post empty image file in nodejs using multer
I want to post a form with or without image file. I am able to upload image file but it sends me error while trying to upload without image fiel
my code is
router.post('/fabric', upload.any([{
...
0
votes
0
answers
1k
views
Upload image from React Native to Apollo Server not working?
I have created my backend with Nodejs and Apollo Server. I am trying to upload an image from my React Native client. Here is my backend code
Mutation: {
async singleUpload(_, { fileInput: { file, ...
0
votes
1
answer
244
views
How to send reduced/optimised images from node server to Angular client (but save original quality to database)
I'm working on a project which requires an image database. Many of the images are rather larger than they need to be for 90% of the use cases of the application, however, there are cases where I need ...