Mark Lalor
Mark Lalor

Reputation: 7887

PHP upload_max_filesize

How can you set upload_max_filesize to no limit?

Could you say upload_max_filesize = -1 (As you can with other things)?

Upvotes: 1

Views: 2228

Answers (2)

OIS
OIS

Reputation: 10033

Its based on the maximum value of the POST you can get.

post_max_size

Might also need to set the memory limit.

If its too large, it can be abused.

Upvotes: 1

Ólafur Waage
Ólafur Waage

Reputation: 70001

Not that I know of, and why would you? Your server's memory will thank you for not doing that. And why allow a user to upload a "file" that will fill your server.

Upvotes: 3

Related Questions