.apk uploader..how?
Started on the old forum in November 2012 · view the original in the archive · old links redirect here
hi_jakkk wrote: in my uploader i have this
$ct['sis'] = 'application/symbian.install';for symbian applicati0ns. Now i want to have for android applications or .apk files...
use zip mime it will work too
To confirm the mime of a file you don't know, do this
<form action="" method="post" enctype="multipart/form-data">
<input type="file" name="file" />
<input type="submit" />
</form>
<?php
echo nl2br(print_r($_FILES['file'], 1));
?>
The result will be something like this
Array
(
[name] => Blackmart Alpha 0.49.93.apk
[type] => application/vnd.android.package-archive
[tmp_name] => /tmp/phpPLy5a8
[error] => 0
[size] => 264900
)
BTW, validating files by checking its mime type is unsafe
I need some facebook likes, can you please help me 🤝 http://facebook.com/softwarefreakin I noticed social media is really powerful 🧙 Well DONE is better than well SAID