'Laravel — avif file validation
I tried to validate avif file like I validate png or jpeg, with mimes rule, but Laravel determines file mime type as application/octet-stream and rejects it.
$request->validate([
'file' => 'required|file|mimes:avif'
]);
How do I validate .avif image type?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
