Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

lilsOfi's avatar

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'),
            ]);
0 likes
3 replies
jaseofspades88's avatar
Level 51

Does the filesize of your ppt exceed your server limit?

lilsOfi's avatar

@jaseofspades88 I checked my php.ini and the max filesize is 32m, the the file i am trying to upload is 2.2mb so i don't think thats the problem

Please or to participate in this conversation.