Fixed MIME parser to handle single file upload in form.