By mwilliamsdev
I can upload images to DO Spaces and view them (both in-app and via public URL) just fine. However, when I attempt to use Storage::move($old_path, $new_path) I receive a 404 Not Found and aNoSuchKey error. The URL being processed looks thusly:
https://myappname.nyc3.digitaloceanspaces.com/my_bucket?prefix=photos%2Ffolder%2F2f19fe78-bf49-4393-beef-c51c7b34c119%2FB4CB6004044A4231A734.jpeg%2F&max-keys=1&encoding-type=url\
Should the prefix include the actual file name? Should there be a trailing %2F after the filename? If not, how do I remove it? I’m simply using Storage::move to make things happen. My “filesystem.php” appears to be configured correctly, although clearly something is amiss. Thoughts?
NOTE: I edited the domain of the URL to obscure the resources for the time being.
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
No answer to this after a year? I’m having the exact same issue. Every other command except copy and move seem to work. I can create directories, upload files etc. but get a NoSuchKey error when trying to use move.
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.