XAMPP is a free and open source cross-platform web server solution stack package developed by Apache which allows a web application to be easily tested on the local web server. But when it comes to uploading files to the server using PHP it is a headache. In most of the cases, PHP servers do not allow to upload files bigger than 30 MegaByte (30MB).
Change the limit of file upload size:
Edit php.ini file to change the upload file size on ther server. To ensure that file upload works correctly, the post_max_size directive should be a little larger than the upload_max_filesize. For example, the following settings demonstrate how to set a file upload limit to 100 megabytes:
upload_max_filesize = 100M post_max_size = 101M
Now, What if your hosting provider does not allow you to access the “php.ini” file?
Steps to run Upload ProgressBar Project:
- Download complete project from Github.
- Use Winrar to extract the zipped file.
- Save the extracted file in XAMPP htdocs folder.
- Run XAMPP server.
- Now, open browser tab and type localhost/geeks/index.php or localhost/geeks on the address bar. It will display the output.
- Bootstrap (Part-6) | Progress Bar and Jumbotron
- How to do box shadow with progress bar style using bootstrap?
- How to Create a Progress Bar using HTML5 ?
- How to create a gradient Video Progress Bar?
- Bulma | Progress Bar
- How to create a progress bar using HTML and CSS?
- How to Set Color of Progress Bar using HTML and CSS ?
- Difference between self::$bar and static::$bar in PHP
- PHP | $_FILES Array (HTTP File Upload variables)
- How to change the maximum upload file size in PHP ?
- How to select and upload multiple files with HTML and PHP, using HTTP POST?
- How to Upload Image into Database and Display it using PHP ?
- How to upload files asynchronously using jQuery?
- Perl | File Upload in CGI
- How to upload Laravel App to Heroku Cloud Application Platform
- Associate user to its upload (post) in Django
- How to Upload File using formidable module in Node.js ?
- Upload and Retrieve Image on MongoDB using Mongoose
- File Upload in ElectronJS
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to firstname.lastname@example.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.