How to get the size of a file that exceeds post_max_size

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
deezerd
Forum Newbie
Posts: 4
Joined: Sat Mar 22, 2008 7:52 pm

How to get the size of a file that exceeds post_max_size

Post by deezerd »

Hi

I would like to know if there is some function that returns the size of a file that would be sent in a form with the POST method and whose size would exceed the post_max_size value in the php.ini file.

As $_FILES doesn't return anything if the file size exceeds post_max_size, how can we still get the size of the file sent? Is there any function to do so?

thanks in advance for your help
User avatar
John Cartwright
Site Admin
Posts: 11470
Joined: Tue Dec 23, 2003 2:10 am
Location: Toronto
Contact:

Re: How to get the size of a file that exceeds post_max_size

Post by John Cartwright »

Unfortunately, no.
deezerd
Forum Newbie
Posts: 4
Joined: Sat Mar 22, 2008 7:52 pm

Re: How to get the size of a file that exceeds post_max_size

Post by deezerd »

Just wanted to be sure, thanks :)
Post Reply