Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multiple uploads #377

Open
akshay-sawant-bh opened this issue Aug 28, 2024 · 1 comment
Open

Multiple uploads #377

akshay-sawant-bh opened this issue Aug 28, 2024 · 1 comment

Comments

@akshay-sawant-bh
Copy link

While using postman if upload a single file , req.files is an object whereas if I upload multiple files its an Array of objects can we keep it simple like even if its a single file or multiple keep it as Array only.

Has anyone faced this issue and a solution to this

@ronaldo071515
Copy link

ronaldo071515 commented Oct 2, 2024

⭐ I have just tested it and it is already working as required

Server running on port 3000 [Object: null prototype] { file: [ { name: 'kurzgesagt-02.jpeg', data: <Buffer ff d8 ff e0 00 10 4a 46 49 46 00 01 01 00 00 01 00 01 00 00 ff db 00 43 00 06 04 05 06 05 04 06 06 05 06 07 07 06 08 0a 10 0a 0a 09 09 0a 14 0e 0f 0c ... 77886 more bytes>, size: 77936, encoding: '7bit', tempFilePath: '', truncated: false, mimetype: 'image/jpeg', md5: '22477b5b13101159d31b551d63194611', mv: [Function: mv] }, { name: 'wallpaper_anonymus.png', data: <Buffer 89 50 4e 47 0d 0a 1a 0a 00 00 00 0d 49 48 44 52 00 00 0f 00 00 00 08 70 08 02 00 00 00 1f dc 5c 25 00 00 00 09 70 48 59 73 00 00 0e c4 00 00 0e c4 01 ... 377376 more bytes>, size: 377426, encoding: '7bit', tempFilePath: '', truncated: false, mimetype: 'image/png', md5: '9782ecea8f10f937f18abcb1a010b185', mv: [Function: mv] } ] }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants