Skip to main content

Describes a file to upload.

Properties (5)

Property Type Default Required Description
filePath⚓︎ string x

Path to the file to upload.

length⚓︎ number 0

Number of bytes to read starting from the value set in offset.

modificationTime⚓︎ number x

The time the file was last modified expressed as a number of seconds since the UNIX epoch.

offset⚓︎ number 0

Position of the first byte to read.

type⚓︎ "file" x

Type of the uploaded data. Must be set to "file".