frontend / 6.0.2 /file /types.ts
gradio-pr-bot's picture
Upload folder using huggingface_hub
d320567 verified
raw
history blame contribute delete
624 Bytes
import type { FileData } from "@gradio/client";
import type { LoadingStatus } from "js/statustracker";
import type { SelectData } from "@gradio/utils";
export interface FileProps {
value: FileData | FileData[] | null;
file_types: string[];
file_count: "single" | "multiple" | "directory";
allow_reordering: boolean;
type: "filepath" | "binary";
_selectable: boolean;
height: number | null;
}
export interface FileEvents {
upload: FileData | FileData[];
download: void;
error: string;
clear_status: LoadingStatus;
clear: void;
select: SelectData | null;
change: FileData | FileData[] | null;
delete: void;
}