Method 1:
At first, Open your Xampp folder, and find out php folder. ex:
And then open your php folder and find out php.ini . ex:
Open your php.ini file (if it is giving permission to edit ) and it will open in notepad. and in notepad click, edit -> find -> write (file uploads) and click find next and this will appear:
find upload_max_filesize. By default, Upload_max_filesize will be 2M. change it to 128M, like i did in the picture. Don't forget to give the M after 128. Ex: 128M. And that's it , you are good to go.
Method 2: (.htaccess)
If php.ini don't give responses or don't give permissions! Than method 2 is for you...
click on htdocs and open your project. and open your .htaccess file of that project in notepad++ or notepad. If you don't have any .htaccess file! than create one.
Now,open your .htaccess file and write the following code:
and save your file. That's it.
[Note: You can set the filesize to 512M also]
I hope this will help you. Thanks!
At first, Open your Xampp folder, and find out php folder. ex:
| find php folder |
And then open your php folder and find out php.ini . ex:
| php.ini |
Open your php.ini file (if it is giving permission to edit ) and it will open in notepad. and in notepad click, edit -> find -> write (file uploads) and click find next and this will appear:
| file uploads |
find upload_max_filesize. By default, Upload_max_filesize will be 2M. change it to 128M, like i did in the picture. Don't forget to give the M after 128. Ex: 128M. And that's it , you are good to go.
Method 2: (.htaccess)
If php.ini don't give responses or don't give permissions! Than method 2 is for you...
click on htdocs and open your project. and open your .htaccess file of that project in notepad++ or notepad. If you don't have any .htaccess file! than create one.
Now,open your .htaccess file and write the following code:
php_value upload_max_filesize 128Mand save your file. That's it.
[Note: You can set the filesize to 512M also]
I hope this will help you. Thanks!
Comments
Post a Comment