Support the ongoing development of Laravel.io →
Validation

I need to validate an upload, the extension is .ies and the mime type is application/octet-stream (like a bin file).

The validation fails no matter what I type in the "mime" rule of the validator, I tested with: ies, bin and application/octet-stream, but all fails.

How can I tell Laravel that application/octet-stream is the mime type for ies files?

Last updated 2 years ago.
0

it's better to write a new rule for that. see using custom rules.

0

Sign in to participate in this thread!

Eventy

Your banner here too?

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2025 Laravel.io - All rights reserved.