Question

Spaces returning Forbidden 403 when trying to upload with Laravel

Posted June 30, 2020 94 views
StorageLaravel

It seems like DO Spaces is blocking my IP or something like that. How can I solve it? I’m using Laravel to upload a file to DO Space

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.

×
1 answer

Hi there @luismatos,

I could suggest following step 5 from this tutorial here on how to integrate an S3-Compatible Object Storage into the Laravel:

https://www.digitalocean.com/community/tutorials/how-to-set-up-a-scalable-laravel-6-application-using-managed-databases-and-object-storage#step-5-%E2%80%94-integrating-an-s3-compatible-object-storage-into-the-application

Hope that this helps!
Regards,
Bobby

by Bobby Iliev
by Erika Heidi
Data persistence and file storage represent two of the biggest challenges when horizontally scaling web applications. This is mainly due to the fact that it is hard to maintain consistency of variable data between multiple application nodes. A practical way of meeting these demands is by using managed databases and object storage. In this guide, we will update an existing Laravel 6 application to use a managed MySQL database and an S3-compatible object store.
Submit an Answer