Skip to content

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 ​

PropertyModifierTypeDescriptionDefined in
accepted?publicbooleanSet after validation. undefined while validation is pending.core/src/types.ts:51
fingerprintreadonlystringrelativePath|size|lastModified.core/src/types.ts:45
folderreadonlyFolderNodeParent folder node; the virtual root for loose files.core/src/types.ts:47
fullPath?readonlystringSame as relativePath, but only defined when the file came from a folder.core/src/types.ts:43
idreadonlystringUUID v4, created on add, never changes, unique per instance.core/src/types.ts:39
previewElement?publicHTMLElementSet by @vedratech/anydrop-ui only; core never touches it.core/src/types.ts:57
relativePathreadonlystringNormalised path: 'Photos/2024/a.jpg', or 'a.jpg' for a loose file.core/src/types.ts:41
statuspublicFileStatusCurrent status; changes as the upload progresses.core/src/types.ts:49
uploadpublicAnyDropUploadStateUpload bookkeeping: uploadId, progress, bytes and chunk state.core/src/types.ts:53
xhr?publicXMLHttpRequestLast request; set only by the XHR transport (M2).core/src/types.ts:55

Released under the MIT License.