All Questions
Tagged with multer typescript
101
questions
0
votes
1
answer
27
views
Multer s3 upload: File in s3 not playing and file increase
I am uploading a mp4 file to s3 via node.js s3.
The code works and I see the file in the s3. However The original file is 860kb but when uploading it it turns to 1.4MB and when I download it from S3 ...
-2
votes
0
answers
13
views
cannot get images when fetching the url localhost/uploads/filename
the photo is storing perfectly in the uploads file and even in mongo db too but when i try to get/fetch them im not getting the photo [enter image description here](https://i.sstatic.net/kEgyRh[enter ...
0
votes
0
answers
32
views
multer error while compiling typescript project
i am creating api /product/create where i can create product with image and other details. i am using multer with typescript to upload the image. but when i run npm run build i get this error.
...
0
votes
0
answers
60
views
TypeError: Cannot read properties of undefined (reading 'transfer-encoding') at hasbody
I am working on a Matrimony_Backend (click the link to see the GitHub repo) with Hono, Cloudflare Worker, and Prisma.
I am trying to introduce an add profile_image feature and horoscope_img. Being ...
0
votes
0
answers
31
views
req.files might be undefined
I have setup a typescript project with multer. The app should act as a REST API that will be responsible for file uploads. When I place upload.array('files', 10) as my middleware in app.post(), the ...
0
votes
2
answers
94
views
Property 'location' does not exist on type 'File'
I have changed multer to multer-s3. Changing in controllers for that. I will store "location" instead of "filename". But I am getting typescript error.
I am using Localstack for ...
0
votes
2
answers
79
views
Issue with multer upload files
I want to upload images on the website built on React. I have issue with backend Node.js code.
Code:
const multer = require("multer");
// Check if the directory exists, if not, create it
...
0
votes
2
answers
274
views
Anyone knows about this Namespace 'global.Express' has no member 'Multer' exported.ts(2694)
Im trying to create an enpoint to send a zip file and this error keeps apearing ERROR in ./apps/api/src/app/ingestion/ingestion.controller.ts:46:35
TS2694: Namespace 'global.Express' has no exported ...
0
votes
0
answers
77
views
Uploading an image using Multer in a Node.js, Typescript and typeORM project using service, controller model
I will be very specific with this one. I am trying to upload an image for Staff entity in my project but the error persists. Here is my code snippets -->
//from typeORM
@Column({default : "&...
0
votes
0
answers
58
views
how to upload images with cloudinary using multer memory storage?
Okay so i am uploading images with multer and saving it to cloudinary, that is basically the gist of it, It was working fine on local machine cause i was saving the pictures on my laptop using multer....
0
votes
0
answers
27
views
Where do I store uploaded assets using multer when deploying app
Okay so i have an application in which i am using multer to store the uploaded assets locally but also in cloudinary as see below:
multer.js:
const multer = require('multer')
const { v4: uuidv4 } = ...
1
vote
1
answer
131
views
Why is my form data being sent as application/json in my POST request, and why is it returning a Bad Request error?
I have a form to add hotel in the database. I am using react-hook-form. In the form, I am asking images as an input as well. Upon submitting the form, the data from the form is converted into form ...
0
votes
0
answers
27
views
Express API does not receive file data [duplicate]
When my form submits, the backend receives the request but does not receive any data. Other endpoints which are JSON only work, but not with form data for some reason.
index.ts:
import express, { ...
0
votes
0
answers
59
views
Upload Multiple Files Using React, NodeJS with Express & Multer
I want to upload multiple files from my React Application using the formData, I want each uploaded file to be stored in my main root directory named "uploads" and separate each file into ...
2
votes
1
answer
69
views
Multer is undefined in express app while testing with Jest
I am using jest to test my express app made with TS which uses multer to upload files. But my test ends with error "TypeError: Cannot read properties of undefined (reading 'diskStorage')".
...