The image path field must be a file of type image/*

Sometimes it works, sometimes not
No description
3 Replies
toeknee
toeknee6mo ago
provide the code
Dennis Koch
Dennis Koch6mo ago
If mime types don't work it might be a server issue or an issue with the mime type of the file
Dimitar
DimitarOP6mo ago
Forms\Components\FileUpload::make('image_path')->directory('venues/upload')->hiddenLabel()
->image(),
Forms\Components\FileUpload::make('image_path')->directory('venues/upload')->hiddenLabel()
->image(),
This is the code, its simple. The hosting is sitegraund and running php 8.3, im also suspecting it could be hosting issue. The user is also running firefox, and they say it happens both in firefox and chrome. And i cannot replicate the issue with any of them both on local and prod.

Did you find this page helpful?