.apk uploader..how?

Started on the old forum in November 2012 · view the original in the archive · old links redirect here

2 replies · 632 views · started 14 years ago · 1 min read

3 participants
hi_jakkk Developer · 52 posts #1

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...

shushant Developer · 207 posts #2

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

softwarefreak Senior · 349 posts #3

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

Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close