The request looks something like this:
Sending the request URL encoded or not makes no difference, it always throws a:
Invalid file reference: Cannot convert 's3://2021/09/14/b11111c6-e3de-6cd2-63dd-c5e355f9b1ee.pdf?name=file with space.pdf' into valid file reference
Removing the spaces from the
name attribute solves the issue, but then we can’t use spaces in the filenames.