oops, fix issue when no file uploaded
Merge pull request #113 from ccd0/master

oops, fix issue when no file uploaded