Upload Limit Probs

Started on the old forum in February 2009 · view the original in the archive · old links redirect here

23 replies · 1,030 views · started 17 years ago · 1 min read

7 participants
wap2k Developer · 168 posts #21

Hey,

Yes if you can see that code for the video file. You will need to add the line youngson gave you to a .htaccess file. Or use c-panel to configure mime types if you have that option.

You may also be able to add it to php.ini

Rob.

wap2k Developer · 168 posts #22

QUOTE (metulj @ Feb 24 2009, 08:04 PM) <{POST_SNAPBACK}>

HSDPA is simply great! 7,2Mbit down and 1,8Mbit up so fare... it'll become faster in time

I know i love the freedom.

HSPA+, which provides speeds of up to 42 Mbit/s downlink. Can't wait to see that built into a mobile phone it is going to improve so much i can't wait. Then there will be competition so it can only get better.

ori Lead · 512 posts #23
<?php

$filename=$_GET['file'];
if(ini_get('zlib.output_compression'))ini_set('zlib.output_compression','Off');
$file_extension=strtolower(substr(strrchr($filename,"."),1));
if($filename==""){
echo "<html><title>download error</title><body>ERROR: download file NOT SPECIFIED.</body></html>";
exit;
}
elseif(!file_exists("./downloads/$filename")){
echo "<html><title>download error</title><body>ERROR: File not found.</body></html>";
exit;
};
switch($file_extension){
case "3gp": $ctype="video/3gpp"; break;
case "mp4": $ctype="video/mp4"; break;
}
header("Pragma: public");
header("Expires: 0");
header("Cache-Control: must-revalidate, post-check=0, pre-check=0");
header("Cache-Control: private",false);
header("Content-Type: $ctype");
header("Content-Disposition: attachment; filename=\"$filename\";");
header("Content-Transfer-Encoding: binary");
header("Content-Length: ".filesize("./downloads/$filename"));
readfile("./downloads/$filename");
exit();

?>

call that download.php and add ur mime types 2 it works a treat on pcs and mobiles

path should be download.php?filename=$filename dnt put whole path as u set ur download folder in the file u only want the filename

ori Lead · 512 posts #24

my hsdpa network runs at a max of 2.4mbps stil beats adsl which is fastest landline modem available in my area that was tested wid speedtest.net and my network say max is 3.2 with 1.5 average garenteed

Write your reply now; next you create a free account (or sign in) and it is posted right away. 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