alan0465
alan0465
FFilament
Created by alan0465 on 9/7/2023 in #❓┊help
Curator plugin acceptedFileTypes argument not being adhered to when picking from uploaded content
Hi. Is anyone else using the curator plugin and also having this issue? https://github.com/awcodes/filament-curator/issues/157 It seems the setting the acceptedFileTypes on a specific form field only restricts the filetype when uploading a new file. But still allows me to select a different filetype from previously uploaded content. Although a fix was merged in, it doesnt seem to have completely fixed the issue. I'm using filament/filament:3.0.40 and awcodes/filament-curator:3.0.0 My field code looks like this
CuratorPicker::make('logo')
->acceptedFileTypes(['image/png'])
->constrained(),
CuratorPicker::make('logo')
->acceptedFileTypes(['image/png'])
->constrained(),
Which as I say does restrict new uploads to png files only, but does still allow me to pick from none png files previously uploaded. Cheers
4 replies