F
Filament8mo ago
Connor

Unable to delete fileupload image

Once uploaded, my file can no longer be deleted as it comes up "waiting for size", tap to cancel doesnt do anything.
FileUpload::make('feature_image')->disk('articles')->directory('articles')->image()->preserveFilenames(),
FileUpload::make('feature_image')->disk('articles')->directory('articles')->image()->preserveFilenames(),
I have also cast my feature_image as array. It works for uploading, I just cant alter or remove the image once its there. Using Filament v3.0.100. Any help would be greatly appreciated.
No description
1 Reply
awcodes
awcodes8mo ago
Don’t cast it as an array unless it’s set to ->multiple() Without multiple it will just be the string path for the image.