# Uses of Class
org.apache.commons.fileupload2.core.DiskFileItem

- ## Uses of DiskFileItem in org.apache.commons.fileupload2.core

  Methods in org.apache.commons.fileupload2.core that return DiskFileItem
  Modifier and Type
  Method
  Description
  `DiskFileItem`
  DiskFileItem.`delete()`
  Deletes the underlying storage for a file item, including deleting any associated temporary disk file.
  `DiskFileItem`
  DiskFileItem.Builder.`get()`
  Constructs a new instance.
  `DiskFileItem`
  DiskFileItem.`setCharsetDefault(Charset charset)`
  Sets the default charset for use when no explicit charset parameter is provided by the sender.
  `DiskFileItem`
  DiskFileItem.`setFieldName(String fieldName)`
  Sets the field name used to reference this file item.
  `DiskFileItem`
  DiskFileItem.`setFormField(boolean state)`
  Specifies whether or not a `FileItem` instance represents a simple form field.
  `DiskFileItem`
  DiskFileItem.`setHeaders(FileItemHeaders headers)`
  Sets the file item headers.
  `DiskFileItem`
  DiskFileItem.`write(Path file)`
  Writes an uploaded item to disk.