File Upload not working on s3
What I'm trying to do:
I want to store my uploads to AWS S3.
What I did:
The Issue
The upload works but when submitted the file is not appearing
the
livewire-tmp
appears on s3 but once hit submit it disappears and nothing is stored.
the filename is being stored but the file is not existent on the s3 thus making it not appear2 Replies
solved.
I just need to add
->visibility('private')
or if you have problem with cors you must add cors config in s3 Bucker like :
[
{
"AllowedHeaders": [
"*"
],
"AllowedMethods": [
"HEAD",
"GET",
"PUT",
"POST",
"DELETE"
],
"AllowedOrigins": [
"*"
],
"ExposeHeaders": []
}
]