I hope it's not too late to answer this question!!
I was implementing a similar thing and ran into the same issue! After a bit of research on stackoverflow, I have a tried and tested answer.
As @phobia82 correctly said, this is an issue of mime types.
Having checked in some browsers and CodeIgniter 3.x, adding a custom mime type is what helps!
Also, worth noting is the fact that apk files are recognized with 2 mime types (from what I have tested)
| application/vnd.android.package-archive |
|-----------------------------------------|
| application/java-archive |
So, goto config/mimes.php
and add this to the array
'apk' => array('application/vnd.android.package-archive','application/java-archive')
This was the reason why my upload failed. Codeigniter detected the APK archive as a java archive and the Apache server detected this as vnd.android.package-archive. Once you are done with this, you can use
$config['allowed_types'] = 'apk';
Hope this helps!!