Error handling in upload file

hi.

I have some question in uploading file.

  1. I want to know how can i handle the error if i upload file exceed to the upload limit size
  2. How can i upload file 1.5GB

Thank you in advance.

Check your php.ini file and make sure maximum allowed file size is set to at least 1.5GB. To find the location of the php.ini you could create a simple script like this and run it:

<?php
phpinfo();
?>

Update the file by locating the line like this:

upload_max_filesize = 20M

and change the limit to the desirable size.

1.5GB is rather large. Maybe better just use a FTP program to do the upload.

This is a list of things I changed in my php.ini file to upload a maximum of 500M
This first couple are under the heading Resource limits
max_execution_time = 300
max_input_time = 600
memory_limit = 256M
This one is under a heading called Data Handling
post_max_size = 510M (If I were you I would change this to = 1600M)
And the last one is under a heading called File Uploads
upload_max_filesize = 500M (and change this one to = 1500M)
But as tom8 says it maybe better to use FTP instead, Cheers

Hi.Okay i will try this…thank you for helping me.