Php File Uploads

windows

Guest
I have a simple php file upload form for uploading files to my site. I am unable to upload files larger than 8 MB even though I have the following in my .htaccess file:<br /><br /><blockquote>php_value post_max_size 40M<br />php_value upload_max_filesize 20M<br />php_value max_execution_time 800<br />php_value memory_limit 40M</blockquote><br /><br />I have used tcpdump (on the client side) to sniff the upload. The TCH server sends "Reset" packets that kills the upload on files 8MB or larger. The file upload isn't timing out, its being killed from the TCH server. Files smaller than 8 MB upload great. <br /><br />Any ideas why I'm encountering this limit?<!--content-->
<!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->php_value upload_max_filesize 10M<!--c2--></div><!--ec2--><br /><br />That should be all you need in your .htaccess file to allow 10-meg files to be uploaded. This has worked for other users.<br /><br />Just add the one line and change 10M to the size file you will allow. If it does not work, please open a ticket with the help desk.<!--content-->
Is 10M the max file size that TCH will allow to be uploaded?<br /><br /><!--quoteo(post=204200:date=Apr 12 2007, 09:39 AM:name=TCH-Bruce)--><div class='quotetop'>QUOTE(TCH-Bruce @ Apr 12 2007, 09:39 AM) <a href="http://www.totalchoicehosting.com/forums/index.php?act=findpost&pid=204200"><img src='http://www.totalchoicehosting.com/forums/style_images/1/post_snapback.gif' alt='*' border='0' /></a></div><div class='quotemain'><!--quotec--><!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->php_value upload_max_filesize 10M<!--c2--></div><!--ec2--><br /><br />That should be all you need in your .htaccess file to allow 10-meg files to be uploaded. This has worked for other users.<br /><br />Just add the one line and change 10M to the size file you will allow. If it does not work, please open a ticket with the help desk.<!--QuoteEnd--></div><!--QuoteEEnd--><!--content-->
I can be wrong and someone will correct me if so, but you should be able to set it to what ever you want.<!--content-->
I think Bruce's message means that you can change it to whatever you want. 10MB was just an example.<br /><br />If changing that one line only doesn't do what you need, then you can open a help desk ticket and they will look into it for you.<!--content-->
Correct, change 10M to 20M, 30M, 40M, etc... I don't know if there is an upper limit set but the help desk would be able to let you know.<!--content-->
According to the Help Desk, there is an 8 MB limit. See the email below I just received from them. <br /><br /><blockquote>Hi,<br /><br />Please be advised that your domain is hosted on a shared server that will not allow to upload a file higher than 8 Mb through scripts. Please use ftp for uploading a file that is having size more than 8 Mb. If you try to upload big files will create load issues and might get the account suspended as apache shows load easier.<br /><br />Thank you for choosing TotalChoiceHosting.<br />---<br />Alex Spaford<br />Technical Support<br />TotalChoiceHosting LLC.<br /><br />Ticket Details<br />===================<br />Ticket ID: BXW-891144<br />Department: Technical Support<br />Priority: --<br />Status: Closed</blockquote><!--content-->
 
Back
Top