Hello 👋
I have an object named my%20file.txt (not my file.txt!).
Unfortunately, If I do objects.Download(storageClient, containerName, "my%20file.txt", nil) I get a 404...
In order to be able to download the file I need to use "my%2520file.txt" (note the % was changed to %25).
The Download documentation doesn't mention anything about it: https://pkg.go.dev/github.com/gophercloud/gophercloud/openstack/objectstorage/v1/objects#Download
But in the library I'm using in another language, if I pass ['objectName' => 'my%20file.txt'] it returns 200 OK.
I see 2 possible fixes:
- Update the doc
- (breaking change) being able to download file with the correct name without having to encode it manually
Thanks for your attention :)
Hello 👋
I have an object named
my%20file.txt(notmy file.txt!).Unfortunately, If I do
objects.Download(storageClient, containerName, "my%20file.txt", nil)I get a 404...In order to be able to download the file I need to use
"my%2520file.txt"(note the%was changed to%25).The Download documentation doesn't mention anything about it: https://pkg.go.dev/github.com/gophercloud/gophercloud/openstack/objectstorage/v1/objects#Download
But in the library I'm using in another language, if I pass
['objectName' => 'my%20file.txt']it returns 200 OK.I see 2 possible fixes:
Thanks for your attention :)