taking the field into account when uploading a file