Replies: 2 comments
-
any update for this issue ?? |
Beta Was this translation helpful? Give feedback.
0 replies
-
I dont think so.
…On Sun, 29 Sept 2024 at 12:30, Alfath Ra ***@***.***> wrote:
any update for this issue ??
—
Reply to this email directly, view it on GitHub
<#13305 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/A5BVNQJ4PACIBDAWDMLW5P3ZY7JDHAVCNFSM6AAAAABJPRGJIOVHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTANZYHAZTKNI>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
When I upload multiple file one or two files are left behind.
I can see that those files are in livewire-tmp folder.
how to solve this issue.
Config :
'temporary_file_upload' => [ 'disk' => 'tmp', // Example: 'local', 's3' | Default: 'default' "rules" => "file|mimes:pdf,jpg,jpeg,png,doc,docx,svg,mp4,mp3 | max:100000", // 'rules' => 'max:100000', // Example: ['file', 'mimes:png,jpg'] | Default: ['required', 'file', 'max:12288'] (12MB) 'directory' => null, // Example: 'tmp' | Default: 'livewire-tmp' 'middleware' => null, // Example: 'throttle:5,1' | Default: 'throttle:60,1' 'preview_mimes' => [ // Supported file types for temporary pre-signed file URLs... 'png', 'gif', 'bmp', 'svg', 'wav', 'mp4', 'mov', 'avi', 'wmv', 'mp3', 'm4a', 'jpg', 'jpeg', 'mpga', 'webp', 'wma', 'pdf' ], 'max_upload_time' => 5, // Max duration (in minutes) before an upload is invalidated... ],
`FileUpload::make('attachments')
->columnSpan(12)
->multiple()
->maxSize(100000)
->disk('uploads')
->visibility('private')
->directory('application_files')
->getUploadedFileNameForStorageUsing(function ($file): string {
$fileName = str($file->getClientOriginalName());
`
Section::make('') ->relationship('result_files') ->schema([ FileUpload::make('attachments') ->columnSpan(12) ->multiple() ->maxSize(100000) ->disk('uploads') ->directory('result_files') ->acceptedFileTypes(["application/pdf"]) ->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.result_documents')) ]),
Beta Was this translation helpful? Give feedback.
All reactions