© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•3y ago•
14 replies
Shaung Bhone

Filament Spatie FileUpload with s3

I got issues with spatie file upload. It's coming from filepond. It's a livewire component. Where am I do wrong?

Here is my configuration. I've set the following configuration:
[
    {
        "AllowedHeaders": [
            "*"
        ],
        "AllowedMethods": [
            "HEAD",
            "GET",
            "PUT",
            "POST",
            "DELETE"
        ],
        "AllowedOrigins": [
            "*"
        ],
        "ExposeHeaders": []
    }
]
[
    {
        "AllowedHeaders": [
            "*"
        ],
        "AllowedMethods": [
            "HEAD",
            "GET",
            "PUT",
            "POST",
            "DELETE"
        ],
        "AllowedOrigins": [
            "*"
        ],
        "ExposeHeaders": []
    }
]

.env
APP_URL=http://0.0.0.0
AWS_ACCESS_KEY_ID=AKIA5MO
AWS_SECRET_ACCESS_KEY=ErUxMtIeMA2ZzrSJb6hVl
AWS_DEFAULT_REGION=ap-southeast-1
AWS_BUCKET=bucket-adate
AWS_USE_PATH_STYLE_ENDPOINT=false
FILESYSTEM_DISK=s3
FILAMENT_FILESYSTEM_DISK=s3
APP_URL=http://0.0.0.0
AWS_ACCESS_KEY_ID=AKIA5MO
AWS_SECRET_ACCESS_KEY=ErUxMtIeMA2ZzrSJb6hVl
AWS_DEFAULT_REGION=ap-southeast-1
AWS_BUCKET=bucket-adate
AWS_USE_PATH_STYLE_ENDPOINT=false
FILESYSTEM_DISK=s3
FILAMENT_FILESYSTEM_DISK=s3


SpatieMediaLibraryFileUpload::make('media')
    ->required()
    ->label(__('Transaction Proof'))
    ->disk('s3')
    ->visibility('private')
    ->disableLabel(),
SpatieMediaLibraryFileUpload::make('media')
    ->required()
    ->label(__('Transaction Proof'))
    ->disk('s3')
    ->visibility('private')
    ->disableLabel(),
Screenshot_from_2023-11-28_20-42-06.png
Solution
I got it.
Jump to solution
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 and Spatie
FilamentFFilament / ❓┊help
3y ago
FileUpload with S3- How to?
FilamentFFilament / ❓┊help
14mo ago
Filament Spatie Translatable & Filament Spatie Tags
FilamentFFilament / ❓┊help
16mo ago
AWS S3: 504 error with FileUpload
FilamentFFilament / ❓┊help
13mo ago