2013-06-19 12:42 pm EST
I tested your code on my own server. I am able to successfully upload smaller files, (100 - 200MB, etc) but when I attempt to upload larger files (mytest file is 540MB) it seems to sit there uploading and then forward to the send_upload.php URL. In my case, I get a connection reset. Is this the behavior you are seeing? Also, is this something you absolutely need? Php is not designed for transfer of larger files, whereas FTP is. You may want to consider creating a public FTP account if that is feasible for your situation.
Yes i am also think the connection resets because i am not getting anything in this($_FILES['myfile']) if it is larger file . I am giving facility to my users to upload their own videos to my site and sharing with their friends. I cannot give ftp-details to all my registered users for uploading video they need to upload on the same page by clicking upload button. so what can i do. it was working before a month i have uploaded around 1GB file. Please look at following link so that you can understand what i want to do
Thank you very much
Sorry for all the trouble with your file uploads not working. You should be able to change the below settings in your php.ini file
and your HTML form.
php.ini changesIncrease the upload_max_files
upload_max_filesize = 1024M
Increase the php memory limit
memory_limit = 1024M
Increase the max_post_size
post_max_size = 1024M
HTML form changes
Add the below hidden input into your form
<input type="hidden" name="MAX_FILE_SIZE" value="1024000" />
You will also need to make your php.ini recursive
. Also, if you don't see your php.ini then you can restore it to your public_html folder.
2013-06-20 12:12 pm EST