We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Uploading large files crashes the browser due to high memory usage.
https://github.com/kapilbarad/payload/tree/payload2-upload-high-memory-usage/examples/media
This is happening because the Payload 2.0 Upload Component is trying to display the image preview of the selected file by reading the file, without checking its type. Ref: https://github.com/payloadcms/payload/blob/2.x/packages/payload/src/admin/components/views/collections/Edit/Upload/index.tsx#L77
Ref
Payload: 2.30.4 NodeJS: 18.17.1
The text was updated successfully, but these errors were encountered:
This issue has been marked as stale due to lack of activity.
To keep this issue open, please indicate that it is still relevant in a comment below.
Sorry, something went wrong.
This fix attached to this issue hasn't been merged yet.
No branches or pull requests
Describe the Bug
Uploading large files crashes the browser due to high memory usage.
Link to the code that reproduces this issue
https://github.com/kapilbarad/payload/tree/payload2-upload-high-memory-usage/examples/media
Reproduction Steps
This is happening because the Payload 2.0 Upload Component is trying to display the image preview of the selected file by reading the file, without checking its type.
Ref
: https://github.com/payloadcms/payload/blob/2.x/packages/payload/src/admin/components/views/collections/Edit/Upload/index.tsx#L77Which area(s) are affected? (Select all that apply)
Environment Info
The text was updated successfully, but these errors were encountered: