Reputation: 15
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
It exceeds the maximum file size. I want to change the maximum file size anywhere I deploy it. Any ideas how to do it ?
Upvotes: 0
Views: 9161
Reputation: 65
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
Upvotes: 1
Reputation: 191
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
Upvotes: 1
Reputation: 446
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
Upvotes: 5