|
||||
|
||||
There are three ways to do this task which are below. When you are working in localhost than you may change and increase the upload file size limit using any of the above. But the best way is to do with .htaccess as when your site will be on server than you may not have access of php.ini and httpd.conf. You can make .htaccess file , write the below rules and you will get the solution to increase the upload file size. Below is the rules of htaccess using which you can use to upload a large file using file field of the form and copy() OR move_uploaded_file() function in PHP.
That's it. Now you can upload the file with size up-to 32MB. In the above .htaccess rules,uploading capability is increased by above rules which are explained below. Rule 1: upload_max_filesize sets maximum file size for uploading. You can set the value of these parameters as per your file size. |