large file uploads

liunx

Guest
Hello all,<br /><br />I am trying to upload files via a very basic HTML form. It will upload files with ease that are small; I've tested picture files up to 1MB and movie files up to 4MB, however, when I have a larger file the page uploads halfway, hangs for a bit, and then gives me a "The Page Could Not Be Displayed" error. The largest file I have tried is 8.5MB.<br /><br />Here is my .htaccess code:<br /><br /><!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->php_value upload_max_filesize 16M<br />php_value post_max_size 16M<br />php_value memory_limit 24M<br />php_value max_input_time 2400<br />php_value max_execution_time 2400<!--c2--></div><!--ec2--><br /><br />Here is my uploader.php code:<br /><br />The directory is CHMOD 777...<br /><br /><!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1--><?<br /><br />// Where the file is going to be placed <br />$target_path = "upload/";<br /><br />/* Add the original filename to our target path. Result is "uploads/filename.extension" */<br />$target_path = $target_path . basename( $_FILES['uploadedfile']['name']); <br /><br />// This is how we will get the temporary file...<br />$_FILES['uploadedfile']['tmp_name'];<br /><br />$target_path = "upload/";<br /><br />$target_path = $target_path . basename( $_FILES['uploadedfile']['name']); <br /><br />if(move_uploaded_file($_FILES['uploadedfile']['tmp_name'], $target_path)) {<br />    echo "The file ". basename( $_FILES['uploadedfile']['name']). " has been uploaded";<br />} else{<br />    echo "There was an error uploading the file, please try again!";<br />}<br /><br />?><!--c2--></div><!--ec2--><br /><br />Here is my uploader.html code:<br /><br /><!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1--><html><br /><body><br /><form enctype="multipart/form-data" action="uploader.php" method="POST"><br /><input type="hidden" name="MAX_FILE_SIZE" value="16384000" /><br />Choose a file to upload: <input name="uploadedfile" type="file" /><br /><br /><input type="submit" value="Upload File" /><br /></form><br /></body><br /></html><!--c2--></div><!--ec2--><br /><br />This is one of the most basic, stripped down uploading scripts out there. I was originally using the ImpAKT File Upload class (paid for script), however, that did not upload larger files either. So I decided to close out that variable by opting for basic code. Both codes have the same issue of uploading halfway and I have tested from three different computers with five different file types (.wmv, .mpg, .mov, .jpg, .gif), however, the code works perfectly on other servers.<br /><br />I do not see any specific errors in my log files. I have already submitted many support tickets; one asking if this error is relating to settings in the httpd.conf file, most notably LimitRequestBody. I asked what setting it was and I was told <b>very rudely</b> that all I needed to do was put "php_value upload_max_filesize 16M" in my .htaccess file for it to work. If I "did not understand", I was to come here, to the scripting forums, and ask for support since this deals with scripting. However, if I cannot modify the httpd.conf file then it deals with the server, not scripting.<br /><br />I'm also not able to access phpinfo() for "security reasons". Whatever they may be, this security is not allowing me to see if the "php_value" settings in my .htaccess file have passed correctly. I have asked to allow phpinfo(), however, I was denied. I am beginning to think some values for .htaccess are not being followed and everything is being defaulted.<br /><br />I have already checked the following URLs and posts for information:<br /><br /><a href="http://www.totalchoicehosting.com/forums/index.php?showtopic=23559" target="_blank">Php.ini Override Questions</a><br /><a href="http://www.totalchoicehosting.com/forums/index.php?showtopic=24627" target="_blank">Uploading Larges Files w/ PHP</a><br /><a href="http://www.totalchoicehosting.com/forums/index.php?showtopic=19285&hl=" target="_blank">Upload_max_filesize .htaccess</a><br /><a href="http://meta.wikimedia.org/wiki/Uploading_files" target="_blank">Wikipedia Uploading Files - Meta</a><br /><a href="http://www.google.com" target="_blank">All of Google</a><br /><br /><b>--- It Gets Better ---</b><br /><br />I have two domains hosted with TCH and this script has been tested on two different servers with the same settings and files:<br /><br />Server 103: Success<br />Server 107: Fail<br /><br />So it is <b>clearly evident</b> that it is not my code or settings for the issue and is in fact a server-side error that I was trying to have checked earlier. <i>So please</i>, someone tell me it is my code that is the issue once again or my settings in .htaccess.<br /><br />I am becoming very agitated with TCH. My first site has never had any problems, however, the second site was not setup correctly first try, twice the server went down (the second time resulted in a week's worth of work lost from the database) and now this issue, all within six months. This is not what I expected from many positive reviews of TCH being professional.<br /><br />I am <b>not</b> going to submit another support ticket. I am tired of the rude responses and I would hate to see what someone just beginning to get their own site would go through asking simple questions. If all responses are to go visit the forums, then TCH should not have a ticket-support area at all.<br /><br />Both sites are using the "Starter Plan" model. I would hate to think support is based on how much I pay, if so, something needs to change. I am planning on upgrading to the dedicated server options, however, if I cannot get a simple thing like this checked from support, then I am not going to even bother. I value a company based on how it treats me and other customers, no matter how much I pay, and TCH is severely lacking.<br /><br />So how do I fix this issue? Submit another ticket? Go to the forums? Tell me, please.<br /><br />- Jason Stauffer<!--content-->
Hello Jason, <br />I have my staff reviewing the issue and this will be resolved. <br />Please message me with your ticket number and we will take care of it.<!--content-->
Hello Jason,<br /><br />My staff has replied and corrected the issue that was causing your large file uploads to fail. <br /><br />If you have further problems simply respond back to my email and we will be glad to assist.<!--content-->
 
Back
Top