I was trying to upload a file which is 20MB in size. Now default form upload size is 8MB. When I upload such a file i get $_POST and $_FILE variables empty. Now I want to put a check on file size. If I get both these variables empty, how can I put such a check ?? Please give me suggestions
Share
No idea what you actually want. But you can probe the recieved content size using:
This should tell how big the POST request body would have been. (The number might be higher than the actual received content, in case of an aborted upload.)