fix a bug, when no file uploaded, emit ENOENT error