Hi Guys, please help me. i try to upload a 60mb file via my script. I can upload smaller files but big files like 60mb, the page expire. I already set the ff in php.ini. memory_limit=200M upload_max_filesize=200M post_max_size=400M max_execution_time=3600 Thanks, Mike
It could be your host? For example dreamhost sets a limit of 7mb, regardless of php.ini settings. On dreamhost you can get round this by compiling your own php executable. On other hosts you might be able to ask them to increase the limit.
hi, thanks for the response. what do you mean host. Im in control of the server. By the way im using windows 2003 server and install php and apache there. Thanks again, mike
inside the form there's a hidden value for the maximum size of the file change that value and you should be okay
hi, thanks for the response. What form ?, i think not in the script. But i youre saying the php.ini, yes i already setup this memory_limit=200M upload_max_filesize=200M post_max_size=400M max_execution_time=3600 and restart the apache. Still the page expire when uploading 6mb of file
In the html form you are using to upload the data to the php script, is ther a MAX_FILE_SIZE=(number)? if so you may need to bump it up to the right size
Hi, Thanks, ok i saw it, it has a value of <input name="MAX_FILE_SIZE" value="104857600" type="hidden"> and i guess that is enough for 100mb. im just uploading 60mb
What php code are you running? Have you checked if it has issues when on windows? As it is slightly different to *nix.
yeah, my code is very simple on upload page <form method="post" enctype="multipart/form-data" action="vid_upload_2_save.php" name="theForm" id="theForm" onsubmit="return formValidator();"> <input name="field_uploadfile" size="30" type="file"> <input name="MAX_FILE_SIZE" value="104857600" type="hidden"> </form> and upon saving, via $_POST["field_uploadfile"] then copy($_FILES['field_uploadfile']['tmp_name'], $add); Not sure about the windows but i think on windows . I cant figure it out.
Hi, sad to say, im the host. I have full access using administartor(root in linux) in the server. install php, apache and mysql. set php.ini memory_limit=200M upload_max_filesize=200M post_max_size=400M max_execution_time=3600
If it works for one it should work for all, so it's likely your host have a max filesize set, or that tey simply do not allow users to edit ini settings in php.....
no luck, still expire. What ive notice when i upload the 60mb file, it takes 2-3 mins. before it expire.
If the server is running on a LAN or the same machine as you, it should only take a few seconds to transfer 60mb. Is there something fundamentally wrong with your server?