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
1
vote
1 answer

Unsupported content type Image/PNG

I am trying to upload a image file on server using NodeJS busboy and I am getting this error: Service Listening for request on: 8080 Error: Unsupported content type: image/png at Busboy.parseHeaders…
writeToBhuwan
  • 3,233
  • 11
  • 39
  • 67
1
vote
2 answers

File Upload Failure

I am trying to upload file using Ajax to a Nodejs Server. Ajax Code: var url = 'http:///upload/'; var formValues = $("#files").get(0).files; $.ajax({ url: url, type: 'POST', data: formValues, processData: false, cache:…
jeevs
  • 261
  • 6
  • 20
1
vote
1 answer

How to convert busboy file stream to binary object on nodejs

Requirement: Working on image file upload. Here, using express and node.js. Received binary data in file using busboy package. My question is how to receive binary data from file to local variable to insert in mongo db. var binaryData = ""; var…
user3297351
  • 153
  • 3
  • 12
1
vote
1 answer

Express & connect-busboy ignore from some requests

I use connect-busboy with express: var busboy = require('connect-busboy'); app.configure(function () { app.use(express.logger()); app.use(busboy()); app.use(bodyParser()); app.use(function(err, req, res, next){ res.send(500,…
Or Smith
  • 3,556
  • 13
  • 42
  • 69
0
votes
0 answers

Storing email attachment in firebase storage using GCFs with busboy

I have been working for a long time on using google cloud functions with busboy to take an attachment from an email, posted through the Sendgrid Inbound Email Parse API, and storing that attachment in Firebase Storage. I understand multer may have…
0
votes
0 answers

Passing stream to other function

On the frontend I'm uploading the image using FormData const formData = new FormData(); formData.append('avatar', data.file); return API.post('/uploadImg', formData) On the backend I am using express and have the next function async function…
Nikita Lvov
  • 97
  • 2
  • 14
0
votes
1 answer

Firebase Functions returns error "Error: Unexpected end of form at Multipart._final"

I started using Firebase Functions and ran into a problem. Namely, when I created my API (running locally), deployed to Firebase Functions using firebase deploy --only functions and called from my frontend - in the function logs an error is…
0
votes
1 answer

Can't submit form when using Firebase Functions

I have an Express.js app which I use a REST API to interact with Firebase Storage and Realtime Database. I set up a Firebase project where I use Firebase Functions. I have one main function which is basically the entry point for all requests to my…
0
votes
1 answer

Converting working multer function to busboy due to Google Cloud Functions

I have the following function that works like a charm when used locally: async function uploadFile(file: any, fileName: string, targetFolder: string) { return new Promise((resolve, reject) => { const destinationFilepath: string =…
Spurious
  • 1,903
  • 5
  • 27
  • 53
0
votes
0 answers

BusBoy fileExtension Error: filename.[object Object]

I'm trying to upload a file in which I need to extract file extension from filename, I'm using busboy library and it uploads a file but extension updates as [object, object], here is the code. const BusBoy = require("busboy"); const path =…
0
votes
0 answers

Upload larger than 1MB via POST request stay pending eternally after server sends a error message

im new to nodejs and working on a app that can accept file upload and download using express js, the frontend side upload feature just never receive the error response(validation not passed, etc.) sent from the sever side, always stay on pending…
0
votes
0 answers

File upload with busboy sometimes does not send response in error case

I want to stream an uploaded file with busboy to another server. Doing that I stumbled into strange behavior in error case. The real application code is in NestJS but I could reduce it to the following in a simple express app. Here is the method…
dyedwiper
  • 151
  • 12
0
votes
0 answers

Not able to assign an array of file links in nodejs busboy

Hi I am trying to assign an array of image links to an array variable but not able to do so by using busboy. The files are being inserted to firebase storage and all the urls generated is stored in an array but when assigning that array to the…
akm
  • 149
  • 1
  • 9
0
votes
1 answer

Busboy not firing field in nodejs

Hi I am trying to run a post request using connect-busboy but not able to do so. additionally I am not able to pinpoint the error as it is not showing any error. Additionally I am using postman to check the router with the below settings…
akm
  • 149
  • 1
  • 9
0
votes
0 answers

How to perform an HTTP post request using express on Cloud Functions for Firebase using busboy

Hi I am trying to insert data in the database using a POST Request but the data is not being inserted. On further investigation I found that to upload form-data, busboy needs to be used for image upload in firebase functions but I am not able to…
akm
  • 149
  • 1
  • 9