Skip to main content

How to set file size in Xampp!

Method 1: 

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 128M

and save your file. That's it.

[Note: You can set the filesize to 512M also]



I hope this will help you. Thanks!

Comments

Popular posts from this blog

Laravel Vuejs Basic Setup

In this article we will see how to setup vue with laravel. 1) Create a laravel project: laravel new laravue 2) In web.php create a temporary route:  Route :: get ( '/test' ,  function  () {      return   view ( 'welcome' ); }); So, when you will see the welcome page once you hit the  http://laravue.test/test  url. 2) In terminal run:  npm install 3) npm install vue (In package.json file you will see that vue dependency has been added successfully) 4) Now go to resources -> js -> app.js file. Here we will have to load the vue. write the following lines in app.js.  require ( './bootstrap' ); window . Vue  =  require ( 'vue' ); const   app  =  new   Vue ({      el :   '#app' }); (Here, vue js will execute and control anything that will be inside the app id. So, for our example  let's put the app id inside the welcome view). So, inside welcome.blade.php 's body...