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

fix(ui): upload edits handling for bulk uploads #12001

Merged
merged 8 commits into from
Apr 7, 2025

Conversation

PatrikKozak
Copy link
Contributor

@PatrikKozak PatrikKozak commented Apr 4, 2025

What?

This PR addresses a bug where image edits (crop, focal point, etc.) were not persisting correctly in bulk uploads due to shared state logic with single uploads.

How?

  • The Upload component now receives uploadEdits, resetUploadEdits, and updateUploadEdits as props.
  • Upload_v4 was introduced to encapsulate the actual upload logic, making it easier to reuse and test.
  • The AddingFilesView and EditForm components are responsible for injecting the correct uploadEdits state, depending on context.
  • Avoided unnecessary useFormsManager usage in Upload.

Fixes #11868

@PatrikKozak PatrikKozak merged commit c7b14bd into main Apr 7, 2025
78 checks passed
@PatrikKozak PatrikKozak deleted the fix/bulk-upload-edits branch April 7, 2025 18:06
Copy link
Contributor

🚀 This is included in version v3.34.0

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

Successfully merging this pull request may close these issues.

Bulk Upload for Media does not save crop and focal point selections - Website Template
2 participants