Support the ongoing development of Laravel.io →
Requests Input Validation
Last updated 2 years ago.
0

Hi,

The MIME type of apk files is application/vnd.android.package-archive and not apk.

I am not 100% sure how the mimes rule works, but I am sure it don't have a list of all available MIME types.

Don't know if this will work but try

$validator = Validator::make( Input::all(), array( 'apk' => 'required|mimes:application/vnd.android.package-archive' )
Last updated 2 years ago.
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.

© 2024 Laravel.io - All rights reserved.