1

Whta is the maximum file upload size in PHP 5? I am uploading a file of 6MB and get error 1. Thanks.

5 Answers 5

1

It's determined by upload_max_filesize in your php.ini.

Sign up to request clarification or add additional context in comments.

1 Comment

memory_limit has to be > upload_max_filesize as well.
1

check your php.ini:upload_max_filesize

That might help you :-)

Comments

1

The default is 2 MB, but you can change the upload_max_filesize in the php.ini

Comments

0

The above missed one setting: post_max_size in php.ini .From php doc: "To upload large files, this value [*post_max_size*] must be larger than upload_max_filesize.

If memory limit is enabled by your configure script, *memory_limit* also affects file uploading. Generally speaking, memory_limit should be larger than post_max_size. "

Comments

0

If you need to see what it is set to on your specific server, create a new file with this:

<?php echo phpinfo();

Then access it using your browser.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.