Php validating text input

php validating text input-29

Seems that the browser continues to post up the entire file, even though PHP throws the MAX_FILE_SIZE error properly.

Turning zlib compression to OFF seems to solve the issue.

If the uploaded file is bigger than the integer in this field, PHP disallows this upload and presents an error code in the $_FILES-Array.

The PHP documentation also makes (or made - see bug #40387 -

For Un*x based servers, one could use exec and 'file' command to see if the Operating System thinks the internal contents seem consistent with the data type you expect.

Comments