-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
CloudFront InvalidQueryStringException
on Upload's "Edit" view thumbnail
#9880
Comments
Please add a reproduction in order for us to be able to investigate. Depending on the quality of reproduction steps, this issue may be closed if no reproduction is provided. Why was this issue marked with the
|
Describe the Bug
When deployed on CloudFront, the thumbnail in the "Edit" view for a
Media
collection upload is broken as thesrc
request results in anInvalidQueryStringException
.I've had a quick look through the codebase and it appears to be caused by this line in the
EditUpload
component:payload/packages/ui/src/elements/EditUpload/index.tsx
Line 177 in ca52a50
imageCacheTag
is just the document'supdatedAt
property.Presumably a simple fix would be to include a
key
for the query string:Note that a similar line is also present in the
ThumbnailComponent
:payload/packages/ui/src/elements/Thumbnail/index.tsx
Line 94 in ca52a50
imageCacheTag
prop:payload/packages/ui/src/fields/Upload/RelationshipContent/index.tsx
Line 85 in ca52a50
Link to the code that reproduces this issue
N/A (CloudFront-specific)
Reproduction Steps
Note that I'm using the
storage-s3
plugin, but I don't think that's relevant in this case.Media
(or similar) collectionWhich area(s) are affected? (Select all that apply)
area: ui
Environment Info
The text was updated successfully, but these errors were encountered: