Add a file to be uploaded along with the Assembly.
file
void addFile({required File file, String? fieldName}) { fieldName = fieldName ?? getFieldName(); files[fieldName] = XFile(file.path); }