UNPKG

@uppy/utils

Version:

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

8 lines 594 B
import type { MinimalRequiredUppyFile, UppyFile } from './UppyFile.js'; /** * Takes a file object and turns it into fileID, by converting file.name to lowercase, * removing extra characters and adding type, size and lastModified */ export default function generateFileID(file: Omit<MinimalRequiredUppyFile<any, any>, 'name'> & Pick<UppyFile<any, any>, 'name'>, instanceId: string): string; export declare function getSafeFileId(file: Omit<MinimalRequiredUppyFile<any, any>, 'name'> & Pick<UppyFile<any, any>, 'name'>, instanceId: string): string; //# sourceMappingURL=generateFileID.d.ts.map