0
votes

I am developing a web site. It will be deployed offline. It's just like a interface for image and video storage.

When I upload files, this is what happens. Show Image

enter image description here It exceeds the maximum file size. I want to change the maximum file size anywhere I deploy it. Any ideas how to do it ?

3

3 Answers

4
votes

using .htaccess file in the root directory, you can increase the maximum upload size

php_value upload_max_filesize 64M
php_value post_max_size 64M
php_value max_execution_time 300
php_value max_input_time 300

other way change php.ini file

upload_max_filesize = 128M
post_max_size =64M
max_execution_time = 300
max_input_time = 300
1
votes

You need to change the following settings in your php.ini file

; Maximum allowed size for uploaded files.
upload_max_filesize = 40M

; Must be greater than or equal to upload_max_filesize
post_max_size = 40M
1
votes

go to xampp/php/php.ini, open php.ini using a text editor and find this line upload_max_filesize=, set the file size what you want