Cereal Killer
Cereal Killer

Reputation: 15

PHP Change Max File Size Upload

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 ?

Upvotes: 0

Views: 9161

Answers (3)

Njoroge Mathu
Njoroge Mathu

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

Ben Casey
Ben Casey

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

Rahul Prajapati
Rahul Prajapati

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

Related Questions