This is a fork of the original plugin, with these changes:
Added option to limit the upload size only for the specified MIME types based on a regular expression pattern. It defaults to "/^image//", which means anything starting with "image/", e.g. it will only enforce the size limitation to "image/png", "image/jpeg", "image/foobar", but not "application/something".