Fix bugs when not uploading any file in Upload field