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')),
0 Replies