© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•3y ago•
8 replies
giagara

File upload on s3 with Minio (sail)

Hi,
I've alredy read the other posts about this topic but i can't get it working.
The scenario:
A category resource where i want to upload a picture that should be public (think about a sort of eccomerce).

In the resource (form) i have
Forms\Components\FileUpload::make('picture')
                    ->disk('s3')
                    ->directory('categories')
Forms\Components\FileUpload::make('picture')
                    ->disk('s3')
                    ->directory('categories')


in .env:
AWS_ACCESS_KEY_ID=something
AWS_SECRET_ACCESS_KEY=something
AWS_DEFAULT_REGION=us-east-1
AWS_BUCKET=mybucketname
AWS_USE_PATH_STYLE_ENDPOINT=true
AWS_ENDPOINT=http://minio:9000
AWS_URL=http://localhost:9000/local
AWS_ACCESS_KEY_ID=something
AWS_SECRET_ACCESS_KEY=something
AWS_DEFAULT_REGION=us-east-1
AWS_BUCKET=mybucketname
AWS_USE_PATH_STYLE_ENDPOINT=true
AWS_ENDPOINT=http://minio:9000
AWS_URL=http://localhost:9000/local


Using something like
Storage::disk('s3')->put('categories/asd.txt','asd');
Storage::disk('s3')->put('categories/asd.txt','asd');
works like a charm, but when i do it from web interface it gives me an error.

What seems strange is that filament tries to upload directly the picture to minio:
livewire.js?id=11c49d7e:3953 PUT http://minio:9000/mybucketname/livewire-tmp/jiuIgVyZYQO9hFAyFvZT9bvf5q3zrx-metaYjMuanBn-.jpg?x-amz-acl=private&X-Amz-Content-Sha256=UNSIGNED-PAYLOAD&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=4VfWaDjtRdnIjFh1osj9%2F20230830%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20230830T081610Z&X-Amz-SignedHeaders=host%3Bx-amz-acl&X-Amz-Expires=300&X-Amz-Signature=0bac68f62bcceb8eeeab1ca27fe157095c927aa2df4924f8bb8f3e104f7f5c3a net::ERR_NAME_NOT_RESOLVED

am i missing something?

thanks
Filament banner
FilamentJoin
A powerful open source UI framework for Laravel • Build and ship admin panels & apps fast with Livewire
20,307Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Enable Minio S3 in Laravel Sail environment
FilamentFFilament / ❓┊help
3y ago
FileUpload with Laravel Sail && Minio
FilamentFFilament / ❓┊help
3y ago
File upload with s3
FilamentFFilament / ❓┊help
3y ago
File Upload not working on s3
FilamentFFilament / ❓┊help
3y ago