Skip to content

fix(upload): ensure only image files are read for preview #9562

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

Merged
merged 1 commit into from
May 8, 2025

Conversation

kapilbarad
Copy link

What?

Ensure only image files are read for preview.

Why?

Upon uploading larger files, it crashes the browser as it's reading the whole file for preview.

Fixes #9559

@denolfe denolfe self-assigned this Dec 1, 2024
@github-actions github-actions bot removed the stale label Dec 6, 2024
@denolfe denolfe added the keep Prevents from being marked stale or auto-closed. label Dec 6, 2024
@kapilbarad
Copy link
Author

@denolfe Is this fix going to be included in any upcoming v2 release?

@jessrynkar
Copy link
Member

@kapilbarad this looks good to me - we had a similar update in v3 but never went back and updated v2. Thank you for your work on this and your patience for getting it reviewed 🙏

@jessrynkar jessrynkar merged commit 5ecee3f into payloadcms:2.x May 8, 2025
37 checks passed
Copy link
Contributor

github-actions bot commented May 8, 2025

🚀 This is included in version v2.32.3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
keep Prevents from being marked stale or auto-closed. v2
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants