Support the ongoing development of Laravel.io →
Requests Input Validation
Last updated 3 months 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 3 months ago.
0

Sign in to participate in this thread!

Full Stack Europe

Your banner here too?

Moderators

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

Your logo here?

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

© 2022 Laravel.io - All rights reserved.