Interface: AnyDropFile
Defined in: core/src/types.ts:37
The public file object: the native File, with properties added. It can be passed to FormData, FileReader and URL.createObjectURL unchanged.
Extends
File
Properties
| Property | Modifier | Type | Description | Defined in |
|---|---|---|---|---|
accepted? | public | boolean | Set after validation. undefined while validation is pending. | core/src/types.ts:51 |
fingerprint | readonly | string | relativePath|size|lastModified. | core/src/types.ts:45 |
folder | readonly | FolderNode | Parent folder node; the virtual root for loose files. | core/src/types.ts:47 |
fullPath? | readonly | string | Same as relativePath, but only defined when the file came from a folder. | core/src/types.ts:43 |
id | readonly | string | UUID v4, created on add, never changes, unique per instance. | core/src/types.ts:39 |
previewElement? | public | HTMLElement | Set by @vedratech/anydrop-ui only; core never touches it. | core/src/types.ts:57 |
relativePath | readonly | string | Normalised path: 'Photos/2024/a.jpg', or 'a.jpg' for a loose file. | core/src/types.ts:41 |
status | public | FileStatus | Current status; changes as the upload progresses. | core/src/types.ts:49 |
upload | public | AnyDropUploadState | Upload bookkeeping: uploadId, progress, bytes and chunk state. | core/src/types.ts:53 |
xhr? | public | XMLHttpRequest | Last request; set only by the XHR transport (M2). | core/src/types.ts:55 |