if item type is file a file upload is required