# UploadFile

**Kind**: interface | **Module**: [Windows](https://docs.interop.io/desktop/reference/javascript/windows/index.md)

**Source**: https://docs.interop.io/desktop/reference/javascript/windows/uploadfile/index.html

Describes a file to upload.

## Properties

- **`filePath`** (`string`, required)
  Path to the file to upload.
- **`length`** (`number`, required) default: `0`
  Number of bytes to read starting from the value set in `offset`.
- **`modificationTime`** (`number`, required)
  The time the file was last modified expressed as a number of seconds since the UNIX epoch.
- **`offset`** (`number`, required) default: `0`
  Position of the first byte to read.
- **`type`** (`"file"`, required)
  Type of the uploaded data. Must be set to `"file"`.
