You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I created a custom upload field which uses the local API to upload multiple files at once. When uploading files larger than 1MB, payload throws this error: SyntaxError: Unterminated string in JSON at position 1048576
Changing the Express JSON limit doesn't work, I've tried setting it to way over 1GB, yet the same error is thrown. The same error does not appear when uploading directly to the media collection.
To Reproduce
Clone the repo from the link to the reproduction
Run docker compose up
Create a new account in the local payload instance
Head to http://localhost:3000/admin/globals/bulk-upload
Try to upload any image (or any file) larger than 1MB (Errors out)
Head to http://localhost:3000/admin/collections/media
Upload the same image (or file), the error will not occur
Payload Version
2.16.1
Adapters and Plugins
db-mongodb, bundler-webpack, richtext-slate
The text was updated successfully, but these errors were encountered:
Link to reproduction
https://github.com/louisescher/minimal-payload-repro
Describe the Bug
I created a custom upload field which uses the local API to upload multiple files at once. When uploading files larger than 1MB, payload throws this error:
SyntaxError: Unterminated string in JSON at position 1048576
This error originates from here:
payload/packages/payload/src/express/middleware/convertPayload.ts
Line 5 in 723791b
Changing the Express JSON limit doesn't work, I've tried setting it to way over 1GB, yet the same error is thrown. The same error does not appear when uploading directly to the media collection.
To Reproduce
docker compose up
http://localhost:3000/admin/globals/bulk-upload
http://localhost:3000/admin/collections/media
Payload Version
2.16.1
Adapters and Plugins
db-mongodb, bundler-webpack, richtext-slate
The text was updated successfully, but these errors were encountered: