Does the filesize of your ppt exceed your server limit?
Jan 16, 2025
3
Level 1
Filament power point upload
Hello all, I need to upload a ppt or pptx file via filament form. When I try I get this error -> the server responded with a status of 422 (Unprocessable Content) from the console and this one -> The data.path.efa77af1-cf26-4edd-8245-a74577b5976f failed to upload. from filament form. I try debugging, but laravel logs are clear and i dont have any restrictions as for the mimetype, so I'm not getting why this happens. Thanks!
also, this is my filament resource
return $form
->schema([
TextInput::make('filename')
->required(),
FileUpload::make('path')
->disk('public')
->directory('uploads')
->required()
->previewable(true),
// ->afterStateUpdated(function ($state) {
// // Debug per visualizzare il tipo MIME
// Log::info('File MIME type:', ['mime' => mime_content_type($state)]);
// }),
Repeater::make('tags')
->schema([
TextInput::make('value'),
])
->label('Tags'),
]);
Level 51
Please or to participate in this conversation.