R2: object not found (if file name contains space characters)

For Workes & Pages, what is the name of the domain?

r2-subdomain dot example dot com

What is the error number?

Error 404

What is the error message?

R2 object “files/images/test%20-%2070x100.pdf” not found

What is the issue or error you’re encountering

An object uploaded in a R2 bucket is not found if its name contains a space

What are the steps to reproduce the issue?

Upload a file such as “Example 1.txt” and try to open it using a public domain.
Rename the file “Example_1.txt”, upload and you will be able to retrieve it.