© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•3y ago•
5 replies
Travis

How to use FileUpload to simply upload a file...? 🤔

I have a
Image
Image
resource that has a few basic attributes: filename, disk, directory, size, height, and width.

I also have an
ImageResource
ImageResource
Filament resource class for the
Image
Image
model.

I want to use
FileUpload
FileUpload
to create new
Image
Image
models, but I feel like I'm missing something.

At the moment, the form is simply one
FileUpload
FileUpload
component and there's a
Select
Select
component that allows the user to select an existing directory or create a new one.

The idea is that when the user uploads a file and selects a directory, then a new
Image
Image
will be created and the file will now reside in the specified directory in our s3 bucket.

I have hard-coded the disk and am preserving the filename. Everything appears to work correctly when I choose a file, select a directory, and then hit Create....except, I can't find the file in our s3 bucket.

I can see the image in my
storage/app/livewire-tmp
storage/app/livewire-tmp
folder, but this is not supposed to be its final home.

Everything appears to be successful, but in the end I can't find the image file anywhere. 😢
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

Use HeaderAction to upload file in FileUpload.
FilamentFFilament / ❓┊help
15mo ago
FileUpload failed to upload.
FilamentFFilament / ❓┊help
2y ago
FileUpload file validation after upload, before submit
FilamentFFilament / ❓┊help
13mo ago