Closed RCAFinfo closed 4 weeks ago
Thank you for reporting this issue! This is because I did not consider special characters in object keys when writing code.
Decoding URI may cause other problems, because other users may expect a exact match of object key. I may create a new flag for users to decide whether to decode URI before processing key.
I am on my vacation now and I will fix this once I am back (next Monday) . Sorry for the delay.
You can enable the new decodeURI
option to allow spaces and other special characters in object keys.
I have to say this project has been the biggest blessing. It has saved me at least 1 hour in the last week. I did run into a small snag. In the R2 bucket your are able to have file names containing characters like the space " ". I have found that and folder containing this character creates a 404 error. as an example the folder..."https://publications.rcaf.info/Brandon%20-%20Airmans%20Post/" which is displayed as "Brandon - Airmans Post" this may have been brought on with a recent update to Cloudflares R2.
To see this error please check out "https://publications.rcaf.info/"
Thank you again for developing this tool.
Nathan