avoid file process when no file uploaded