© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•14mo ago•
2 replies
Keith S

FileUpload with S3- How to?

I am using FileUpload field in a filament panel resource. I can get it to upload to a local folder, but am striking out using S3. I have the disk set correctly, folder exists on S3.

What I want to do is:
- user can upload multiple files (mostly pdf) - works n ow
- to an S3 bucket - doesn't give any error message, but file not uploaded
- the original titles will show. - works now
- After saving, the user (or others) can download from S3, using a generated timed URL. The code below works if local
- Some users can be authorized to delete files.

Most examples given are for images and I haven't seen any examples that doesn't require a publicly available folder.

Here is my existing code. I works when disk is local, stores both original and generated file names in JSON array fields in my table.

 FileUpload::make('additional_files_random')
     ->label('Upload PDF Files')
     ->multiple()
     ->directory('mm33_documents')
     ->disk('local')
     ->storeFileNamesIn('additional_files_original')
     ->downloadable()
 FileUpload::make('additional_files_random')
     ->label('Upload PDF Files')
     ->multiple()
     ->directory('mm33_documents')
     ->disk('local')
     ->storeFileNamesIn('additional_files_original')
     ->downloadable()
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

Fileupload to AWS S3
FilamentFFilament / ❓┊help
2y ago
Filament Spatie FileUpload with s3
FilamentFFilament / ❓┊help
3y ago
FileUpload to S3 and bref
FilamentFFilament / ❓┊help
2y ago
AWS S3: 504 error with FileUpload
FilamentFFilament / ❓┊help
13mo ago