UNPKG

@uppy/utils

Version:

Shared utility functions for Uppy Core and plugins maintained by the Uppy team.

19 lines 843 B
/** * Returns a promise that resolves to the array of dropped files (if a folder is * dropped, and browser supports folder parsing - promise resolves to the flat * array of all files in all directories). * Each file has .relativePath prop appended to it (e.g. "/docs/Prague/ticket_from_prague_to_ufa.pdf") * if browser supports it. Otherwise it's undefined. * * @param dataTransfer * @param options * @param options.logDropError - a function that's called every time some * folder or some file error out (e.g. because of the folder name being too long * on Windows). Notice that resulting promise will always be resolved anyway. * * @returns {Promise} - Array<File> */ export default function getDroppedFiles(dataTransfer: DataTransfer, options?: { logDropError?: any; }): Promise<File[]>; //# sourceMappingURL=index.d.ts.map