node-formidable / formidable

The most used, flexible, fast and streaming parser for multipart form data. Supports uploading to serverless environments, AWS S3, Azure, GCP or the filesystem. Used in production.
MIT License
7k stars 680 forks source link

How to upload a file to aws s3 without writing it in the OS file system? #918

Closed gabriellopes00 closed 1 year ago

gabriellopes00 commented 1 year ago

Hey! I'm trying to upload a file received from request (express) to aws s3 storage but I don't want to write the file to OS first and then upload to s3 from the file path... I want to upload while reading the file streams. How can I do this?

wbt commented 1 year ago

Is https://github.com/node-formidable/formidable/blob/master/examples/store-files-on-s3.js helpful?

addy commented 1 year ago

See my comment here: https://github.com/node-formidable/formidable/issues/745#issuecomment-1450753672

wbt commented 1 year ago

Closing as duplicate of #745 and/or satisfied by links above.