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

readMultipartFormData error when parsing big files #851

Open
GuppyTheCat opened this issue Jul 26, 2024 · 1 comment
Open

readMultipartFormData error when parsing big files #851

GuppyTheCat opened this issue Jul 26, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@GuppyTheCat
Copy link

GuppyTheCat commented Jul 26, 2024

Environment

node.js: 22.4.1
nuxt: 3.12.4
primevue: 3.53.0
vue: 3.4.34

Reproduction

Here is repo - file-upload-test
On button click you choose file and upload should automatically start.

Describe the bug

I have nuxt3 application.
I send file from nuxt3 frontend to nuxt3 server api.
If i send file approximately larger than 100Mb then i get error while parsing multipart from data.

Additional context

No response

Logs

Error reading multipart form data: Invalid array length

  at Array.push (<anonymous>)
  at parse (node_modules/.pnpm/[email protected]/node_modules/h3/dist/index.mjs:196:16)
  at readMultipartFormData (node_modules/.pnpm/[email protected]/node_modules/h3/dist/index.mjs:469:10)
  at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
  at Object.handler (server/api/upload.post.ts:4:1)
  at async node_modules/.pnpm/[email protected]/node_modules/h3/dist/index.mjs:1975:19
  at async Object.callAsync (node_modules/.pnpm/[email protected]/node_modules/unctx/dist/index.mjs:72:16)
  at async Server.toNodeHandle (node_modules/.pnpm/[email protected]/node_modules/h3/dist/index.mjs:2266:7)```
@GuppyTheCat GuppyTheCat added the bug Something isn't working label Jul 26, 2024
@s3xysteak
Copy link

Hi Guppy, it looks like it will be fixed in v2. #514

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants