Report this

What is the reason for this report?

file upload to spaces via Laravel app not working in production

Posted on August 3, 2022

Uploading files to spaces via Laravel app hosted on app platform return internal error but works fine on local host. any help be will much appreciated.



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!

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.

Hi @bubblytealsnorkler,

Do you see any relevant logs in the control panel? If you are not seeing any logs at all, make sure to use the stack log driver and configure it to log to the stderr channel.

If you are using the default config/logging.php, I believe all you need to do is set a LOG_CHANNEL=stderr environment variable.

You’re not using a public directory, you’re using public_html. I don’t like this strategy. Make a public directory in public_html and set the the url to env(‘APP_URL’).‘/public/storage’.

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Start building today

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.