MCPcopy Create free account
hub / github.com/OpenSignLabs/OpenSign / fileUpload

Function fileUpload

apps/OpenSign/src/pages/UserProfile.jsx:164–174  ·  view source on GitHub ↗
(event)

Source from the content-addressed store, hash-verified

162 });
163 // file upload function
164 const fileUpload = async (event) => {
165 if (event.target.files && event.target.files[0]) {
166 const file = event.target.files[0];
167 const compressedfile = await compressImage(
168 file,
169 { width: 200, height: 200 },
170 "file"
171 );
172 await handleFileUpload(compressedfile);
173 }
174 };
175
176 const handleFileUpload = async (file) => {
177 const size = file.size;

Callers

nothing calls this directly

Calls 2

compressImageFunction · 0.90
handleFileUploadFunction · 0.70

Tested by

no test coverage detected