F
Filament12mo ago
corean

can I upload heic/heif upload like imageUpload

I want to upload heif/heic files using Filament's FileUpload or SpatieMediaLibraryFileUpload How can I support HEIF/HEIC in MIME types? Or, what about converting to JPG when uploading with Filepond?
1 Reply
awcodes
awcodes12mo ago
Your best bet is to force the user to convert them before upload. And it really has nothing to do with Filament. Even spatie only works with heic for conversions if you are using Imagix on your server instead of GD. So it really a lack of support at the server level than anything else. It can be done by overriding the appropriate methods, but there’s not going to be a simple out of the box solution since server side support is rather limited.
Want results from more Discord servers?
Add your server