Spatie media library not Saving on S3
Hello I'm using spatie media library to save images on s3 disk
Right now I'm using minio for testing in development
This is my form Code:
This is my model:
Here's my aws .env file:
I can see in my network tab that file gets uploaded correctly to localhost:9000(minio) and I can see it's in tmp folder
But laravel media library is not saving the uploaded data in the db so it feels like user hasn't uploaded anything
When I use public file system driver it works like a charm but when I use S3 it's not working correctly
I would appreciate if anyone could help me
2 Replies
Try
AWS_ENDPOINT=http://minio:9000
Thanks G