Fix file upload bug when no file is posted.