Questions tagged [busboy]

A streaming parser for HTML form data for Node.js

busboy is a module for parsing incoming HTML form data.

268 questions
2
votes
0 answers

ENOENT error after busboy received the file

I'm working with a legacy project where MP4 files are uploaded one by one from a React app with axios to a NestJS API with busboy on an EC2 instance. Then, the file is uploaded to an S3 bucket. When the AWS S3 library tries to load the file, an…
Iván Cortés
  • 581
  • 1
  • 9
  • 22
2
votes
1 answer

Getting the file in busboy to upload to firebase storage

I am using busboy in node to upload a file to the firebase storage. But everytme i send the post request with a file, it says.. { "e": { "code_": "storage/invalid-argument", "message_": "Firebase Storage: Invalid argument in…
Rupayan
  • 403
  • 4
  • 8
2
votes
0 answers

NestJs Serverless file upload not working

I am using serverless + NestJS and has a image upload api. If I uses UseInterceptors then got this error. Error: Part terminated early due to unexpected end of multipart data at /srv/storage-server/node_modules/dicer/lib/Dicer.js:65:36 at…
Binh Ho
  • 3,690
  • 1
  • 31
  • 31
2
votes
0 answers

SendGrid Inbound Email Parse Body Raw NodeJS Lambda

I've been spending the last few days trying to find an easy way to parse what SendGrid is sending me. I'm trying to get it through AWS API Gateway then to a Lambda function to work with the data. I tried with busboy but keep getting a boundary not…
2
votes
1 answer

Node js Stream file without saving to memory

I am building an API that needs to accept file uploads. So a user can POST a file to an endpoint, the file will be sent to a virus scan, then if it's clean will be sent to storage (probably S3). So far I have achieved this with one issue: The files…
Barry Piccinni
  • 1,685
  • 12
  • 23
2
votes
1 answer

Why is my image not loading in the Storage dashboard after uploading from Firebase Functions?

I am using the following firebase functions code. const functions = require('firebase-functions'); const admin = require('firebase-admin'); admin.initializeApp(functions.config().firebase); const firestore =…
2
votes
1 answer

Uploading videos using vimeo

I'm implementing uploading videos to vimeo using the official vimeo library. The problem is that I upload the whole video to the server and only then send it to vimeo. After sending I clean it up, of course, but videos can weight a few gbs, so it's…
Nikronis
  • 141
  • 2
  • 11
2
votes
2 answers

FileStream from busboy to MongoDB

So I have an incoming FileStream from busboy that I want to save to MongoDB. I think I need to have it as a File or some sort of buffer to be able to save it. I'm sure I could do it by first saving it to disk using fs and then reading it, but that…
Zorobay
  • 557
  • 1
  • 6
  • 23
2
votes
4 answers

How to combine video upload chunks Node.js

I'm trying to upload a large (8.3GB) video to my Node.js (Express) server by chunking using busboy. How to I receive each chunk (busboy is doing this part) and piece it together as one whole video? I have been looking into readable and writable…
Martavis P.
  • 1,708
  • 2
  • 27
  • 45
2
votes
2 answers

Busboy Save Stream For Use Later

I'm trying to use busboy to allow clients to upload files to my Express web server. I have the following middleware function I'm running for Express. module.exports = (req, res, next) => { req.files = {}; let busboy; try { …
Charlie Fish
  • 18,491
  • 19
  • 86
  • 179
2
votes
1 answer

Accept binary file in body of request on a node.js server

I want to upload a binary file in the body of a POST. I do NOT want to use a multipart/form-data. (As far as I know multipart/form-data is an easy to use technology for web apps, but not easy for mobile apps. I don't have a web app, I'm just…
SirRupertIII
  • 12,324
  • 20
  • 72
  • 121
2
votes
2 answers

What's the difference between the 'field' and the 'file' events in busboy?

Busboy is the middleware I'm using to upload a file. Using an html form inside Chrome, I can upload files (using the 'file' event) but when an android client tries to upload a file, it doesn't trigger the 'file' event, it triggers the 'field' event…
asedsami
  • 609
  • 7
  • 26
2
votes
1 answer

Node server file handling throws Unexpected end of multipart data

I am streaming jpg file to a node server.But the issue is sometimes it works and some times it fails with the folowing error and crashes my server events.js:183 066466+00:00 app[web.1]: throw er; // Unhandled 'error'…
sparks
  • 471
  • 1
  • 6
  • 19
2
votes
1 answer

How can I receive data and keep it in binary?

I'm using the Busboy to parse multipart/form-data in my server, and I want to store each file in a Buffer without automatically convert to utf8. Is it possible? const result = { files: [] } const busboy = new Busboy({ headers: req.headers …
FXux
  • 415
  • 6
  • 15
2
votes
3 answers

Upload file using NodeJS and BusBoy

I am uploading a file using NodeJS. My requirement is to read the stream into a variable so that I can store that into AWS SQS. I do not want to store the file on disk. Is this possible? I only need the uploaded file into stream. The code I am using…
User2682
  • 193
  • 2
  • 4
  • 13