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
While using the website template (ran into the bug on my personal project, but was able to reproduce it in a new project using the website template) the "Bulk Upload" option for the Media collection does not save crop and focal point selections. Images are uploaded unchanged (without cropping or focal point changes). This issue only happens when using the "Bulk Upload" option, uploading a single image from the Media collection screen using "Create New" and making edits works as intended (crop and focal point are saved).
I have run into this issue using the postgres adapter (Postgres v17). I have included a link to a reproduction repo, but this issue is encountered directly from the unchanged website template, so I recommend using pnpx create-payload-app my-project -t website and selecting the postgres adapter instead of using the repo.
Steps here are done while in dev mode (pnpm dev), but I have tested local production (pnpm build) and my live website as well and the issue exists there as well.
Enter the Bulk Upload screen from the Media collection screen.
Add your photos (I dragged 3 jpegs into the window).
Edit Image 1 (changed crop and focal point). Click "Apply Changes" button. Reopening the edit menu again will show that the changes are preserved (crop and focal point are still there).
Navigate to the next image, and then go back to Image 1.
Image 1 edits are lost upon reopening the Edit Image page.
Return to Image 2 and make crop and focal point edits. Click "Apply Changes" button, and then click "Save" while still on the page for Image 2.
After images are uploaded, click into Image 1 and click "Preview Sizes" button to see that the original image has been uploaded with no crop or focal point changes.
The original image has also been uploaded for Image 2, with no changes saved.
Uploading a single image with Bulk Upload also does not save the crop/focal point. The issue is solely with the Bulk Upload feature, number of images doesn't matter.
"Create New" - single image upload
Images are correctly cropped and have their focal point saved when using the "Create New" option.
Which area(s) are affected? (Select all that apply)
area: templates
Environment Info
---- original tests on Payload 3.29 ----
Binaries:
Node: 22.14.0
npm: 10.9.2
Yarn: 1.22.19
pnpm: 10.3.0
Relevant Packages:
payload: 3.29.0
next: 15.2.2
@payloadcms/db-postgres: 3.29.0
@payloadcms/email-nodemailer: 3.29.0
@payloadcms/graphql: 3.29.0
@payloadcms/live-preview: 3.29.0
@payloadcms/live-preview-react: 3.29.0
@payloadcms/next/utilities: 3.29.0
@payloadcms/payload-cloud: 3.29.0
@payloadcms/plugin-form-builder: 3.29.0
@payloadcms/plugin-nested-docs: 3.29.0
@payloadcms/plugin-redirects: 3.29.0
@payloadcms/plugin-search: 3.29.0
@payloadcms/plugin-seo: 3.29.0
@payloadcms/richtext-lexical: 3.29.0
@payloadcms/translations: 3.29.0
@payloadcms/ui/shared: 3.29.0
react: 19.0.0
react-dom: 19.0.0
Operating System:
Platform: darwin
Arch: x64
Version: Darwin Kernel Version 24.3.0: Thu Jan 2 20:22:00 PST 2025; root:xnu-11215.81.4~3/RELEASE_X86_64
Available memory (MB): 16384
Available CPU cores: 12
---- Have also tested after upgrading to the latest Payload version ----
Binaries:
Node: 22.14.0
npm: 10.9.2
Yarn: 1.22.19
pnpm: 10.3.0
Relevant Packages:
payload: 3.31.0
next: 15.2.3
@payloadcms/db-postgres: 3.31.0
@payloadcms/email-nodemailer: 3.31.0
@payloadcms/graphql: 3.31.0
@payloadcms/live-preview: 3.31.0
@payloadcms/live-preview-react: 3.31.0
@payloadcms/next/utilities: 3.31.0
@payloadcms/payload-cloud: 3.31.0
@payloadcms/plugin-form-builder: 3.31.0
@payloadcms/plugin-nested-docs: 3.31.0
@payloadcms/plugin-redirects: 3.31.0
@payloadcms/plugin-search: 3.31.0
@payloadcms/plugin-seo: 3.31.0
@payloadcms/richtext-lexical: 3.31.0
@payloadcms/translations: 3.31.0
@payloadcms/ui/shared: 3.31.0
react: 19.0.0
react-dom: 19.0.0
Operating System:
Platform: darwin
Arch: x64
Version: Darwin Kernel Version 24.3.0: Thu Jan 2 20:22:00 PST 2025; root:xnu-11215.81.4~3/RELEASE_X86_64
Available memory (MB): 16384
Available CPU cores: 12
The text was updated successfully, but these errors were encountered:
Describe the Bug
While using the website template (ran into the bug on my personal project, but was able to reproduce it in a new project using the website template) the "Bulk Upload" option for the Media collection does not save crop and focal point selections. Images are uploaded unchanged (without cropping or focal point changes). This issue only happens when using the "Bulk Upload" option, uploading a single image from the Media collection screen using "Create New" and making edits works as intended (crop and focal point are saved).
I have run into this issue using the postgres adapter (Postgres v17). I have included a link to a reproduction repo, but this issue is encountered directly from the unchanged website template, so I recommend using
pnpx create-payload-app my-project -t website
and selecting thepostgres
adapter instead of using the repo.Link to the code that reproduces this issue
https://github.com/matthew-kelly/payload-bulk-upload-bug-reproduction
Reproduction Steps
Steps here are done while in dev mode (pnpm dev), but I have tested local production (pnpm build) and my live website as well and the issue exists there as well.
"Bulk Upload" - multiple (and single) image upload
Enter the Bulk Upload screen from the Media collection screen.
Add your photos (I dragged 3 jpegs into the window).
Edit Image 1 (changed crop and focal point). Click "Apply Changes" button. Reopening the edit menu again will show that the changes are preserved (crop and focal point are still there).
Navigate to the next image, and then go back to Image 1.
Image 1 edits are lost upon reopening the Edit Image page.
Return to Image 2 and make crop and focal point edits. Click "Apply Changes" button, and then click "Save" while still on the page for Image 2.
After images are uploaded, click into Image 1 and click "Preview Sizes" button to see that the original image has been uploaded with no crop or focal point changes.
The original image has also been uploaded for Image 2, with no changes saved.
Uploading a single image with Bulk Upload also does not save the crop/focal point. The issue is solely with the Bulk Upload feature, number of images doesn't matter.
"Create New" - single image upload
Images are correctly cropped and have their focal point saved when using the "Create New" option.
Which area(s) are affected? (Select all that apply)
area: templates
Environment Info
The text was updated successfully, but these errors were encountered: