must be a file of type:application/pdf

Hey guys, i have this code in my form:
Forms\Components\FileUpload::make('anyfiles')
                    ->label('Ingrese Documentos de respaldo')
                    ->multiple()
                    ->acceptedFileTypes(['application/pdf'])
                    ->directory($tenantFolder->name.'/expense/pdf')
                    ->maxFiles(3),


i upload a pdf file but int the front return me an error

"Documentos de respaldo field must be a file of type: application/pdf."

any idea about this error?
image.png
Was this page helpful?