Question

spaces storage works locally but not in production

Running locally in Laravel sail container, using league/flysystem-aws-s3-v3. It stores correctly in spaces.

All the credentials remain the same in production and I get

Found 1 error while validating the input provided for the GetObject operation: [Key] expected string length to be >= 1, but found string length of 0

I set CORS to allow all methods, header to *. I use cloudflare but set the proxy to DNS-only.

It is on a subdomain.

The error definitely occurs on Storage::disk(‘spaces’). When I change the disk to local the error goes away.

Anyone experience this?

thanks

Show comments

Submit an answer

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!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

found issue in the code. resolved.