Do not rely on the size sent by the client, use the internal one instead.
Added the possibility to validate an uploaded file against its mimetype.
Blacklist test against a files mime type.