payloadcms / payloadcms/payload
Image Resizing Fails When addRandomSuffix: true in vercelBlobStorage Configuration
@PatrikKozak is already working on this.
Since Apr 1, 2025.
- Dominant language
- TypeScript
- Stars
- 44.8k
- Forks
- 4.2k
- Avg merge
- 2d 21h
- Merged PRs (30d)
- 53
Description
Describe the Bug
When uploading images in various sizes, only the original image file with its original dimensions is created.
All other image sizes are not generated and remain empty.
This issue occurs only when the addRandomSuffix: true option is enabled in the vercelBlobStorage configuration.
When the addRandomSuffix option is removed, the functionality works as expected.
Link to the code that reproduces this issue
https://github.com/payloadcms/payload/tree/main/templates/with-vercel-website
Reproduction Steps
Add addRandomSuffix: true to the vercelBlobStorage config inside the payload config file.
Then login to the backend, navigate to the media collection and try to upload some image.
Which area(s) are affected? (Select all that apply)
plugin: other
Environment Info
payload: 3.2.1
next: 15.0.3
@payloadcms/db-mongodb: 3.2.1
@payloadcms/email-resend: 3.2.1
@payloadcms/graphql: 3.2.1
@payloadcms/live-preview: 3.2.1
@payloadcms/live-preview-react: 3.2.1
@payloadcms/next/utilities: 3.2.1
@payloadcms/plugin-cloud-storage: 3.2.1
@payloadcms/plugin-form-builder: 3.2.1
@payloadcms/plugin-nested-docs: 3.2.1
@payloadcms/plugin-seo: 3.2.1
@payloadcms/richtext-lexical: 3.2.1
@payloadcms/storage-vercel-blob: 3.2.1
@payloadcms/translations: 3.2.1
@payloadcms/ui/shared: 3.2.1
react: 19.0.0-rc-65a56d0e-20241020
react-dom: 19.0.0-rc-65a56d0e-20241020
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.