Fix the bug of form upload with mime type set but not work.