Skip to content

Uploads with "%" in filename fail to show (s3Adapter) #6985

Closed as not planned
@carstenblt

Description

@carstenblt

Link to reproduction

No response

Describe the Bug

When uploading a file like "test%test.jpg", it can't be viewed, because the URL is not encoded.

This could be solved by using encodeURIComponent on the filename.

To Reproduce

  • Upload file that contains a %-character in the filename
  • try to view the file. Both thumbnail and download fail

Payload Version

2.22.2

Adapters and Plugins

payload-cloud-storage, s3Adapter

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions