MCPcopy Create free account
hub / github.com/dailydotdev/apps / startUploading

Function startUploading

packages/shared/src/hooks/input/useSyncUploader.ts:48–58  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

46 };
47
48 const startUploading = () => {
49 if (!filesRef.current.length) {
50 return;
51 }
52
53 setQueueCount(filesRef.current.length);
54
55 if (!queueCount) {
56 uploadImage(filesRef.current.pop());
57 }
58 };
59
60 const pushUpload = (file: File) => {
61 filesRef.current.push(file);

Callers 4

useImageUploadFunction · 0.85
onDropFunction · 0.85
onUploadCommandFunction · 0.85
onPasteFunction · 0.85

Calls 1

uploadImageFunction · 0.85

Tested by

no test coverage detected