© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•2y ago•
2 replies
TK

getUploadedFileNameForStorageUsing() on FileUpload::configureUsing() does not work :S

Using
->getUploadedFileNameForStorageUsing()
->getUploadedFileNameForStorageUsing()
when defining defaults for file uploads, does not work.

So, doing this inside the
AppServiceProvider
AppServiceProvider
does not work:
namespace App\Providers;

FileUpload::configureUsing(function (FileUpload $component): void {
    $component->getUploadedFileNameForStorageUsing(
        function (TemporaryUploadedFile $file): string {
             ...
        },
    );
});
namespace App\Providers;

FileUpload::configureUsing(function (FileUpload $component): void {
    $component->getUploadedFileNameForStorageUsing(
        function (TemporaryUploadedFile $file): string {
             ...
        },
    );
});


Not sure why this specifically is for
->getUploadedFileNameForStorageUsing()
->getUploadedFileNameForStorageUsing()
. I think it would be nice defining a default way files are stored globally, instead of doing this on all
FileUpload::make()
FileUpload::make()
everywhere.

Note, using the exact same function on
Fileupload::make()->getUploadedFileNameForStorageUsing()
Fileupload::make()->getUploadedFileNameForStorageUsing()
, does work!

Anyone got an idea? Is this a bug?
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

Does configureUsing work on Filament\Panel?
FilamentFFilament / ❓┊help
2y ago
uploadingMessage method does not work for FileUpload
FilamentFFilament / ❓┊help
2y ago
Fileupload does not render file
FilamentFFilament / ❓┊help
4w ago
Fileupload does not trigger camera on mobile CHROME
FilamentFFilament / ❓┊help
16mo ago