© 2026 Hedgehog Software, LLC

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

multiple file upload - missing some files

Hi I am using Filament FileUpload to upload multiple files. I am noticing strange behaviour. Some time some of the files that are uploaded are missing. Has anybody else also facing the same issue? I am saving this into tabel [
"application_files/2024-03-21 14:40:18-document2.pdf",
"application_files/2024-03-21 14:40:18-document4.pdf",
"application_files/2024-03-21 14:40:18-document3.pdf",
"application_files/2024-03-21 14:40:18-document5.pdf"
] . This is what i am having in table. Also in the uolpads/applicaiton files also contains only these 4 files instead of 5.
     FileUpload::make('attachments')
                        ->columnSpan(12)
                        ->multiple()
                        ->maxSize(100000)
                        ->disk('uploads')
                        ->visibility('private')
                        ->directory('application_files')
                        ->getUploadedFileNameForStorageUsing(function ($file): string {
                            $fileName = str($file->getClientOriginalName());

                            $fileName_str = preg_replace('/[^a-zA-Z0-9.]/','',iconv('UTF-8', 'ASCII//TRANSLIT',  $fileName));
                            return (string) str($fileName_str)->prepend(now() . '-');
                        })
                        ->downloadable()
                        ->rules([ new MalwareFile] )
                        ->label(__('application.resource.application_documents')),
     FileUpload::make('attachments')
                        ->columnSpan(12)
                        ->multiple()
                        ->maxSize(100000)
                        ->disk('uploads')
                        ->visibility('private')
                        ->directory('application_files')
                        ->getUploadedFileNameForStorageUsing(function ($file): string {
                            $fileName = str($file->getClientOriginalName());

                            $fileName_str = preg_replace('/[^a-zA-Z0-9.]/','',iconv('UTF-8', 'ASCII//TRANSLIT',  $fileName));
                            return (string) str($fileName_str)->prepend(now() . '-');
                        })
                        ->downloadable()
                        ->rules([ new MalwareFile] )
                        ->label(__('application.resource.application_documents')),
Filament banner
FilamentJoin
A powerful open source UI framework for Laravel • Build and ship admin panels & apps fast with Livewire
20,307Members
Resources
Was this page helpful?

Similar Threads

Recent Announcements

Similar Threads

multiple file upload
FilamentFFilament / ❓┊help
16mo ago
Filament Multiple File Upload
FilamentFFilament / ❓┊help
2y ago
Multiple Image file Upload
FilamentFFilament / ❓┊help
3y ago
File upload for large files
FilamentFFilament / ❓┊help
15mo ago