MCPcopy Create free account
hub / github.com/YeShengDe/AddressGeneratorFe / uploadFile

Function uploadFile

src/lib/request-examples.ts:42–47  ·  view source on GitHub ↗
(file: File)

Source from the content-addressed store, hash-verified

40
41 // 文件上传
42 async uploadFile(file: File) {
43 const formData = new FormData();
44 formData.append('file', file);
45 const response = await upload<{ url: string }>('/api/upload', formData);
46 return response.data;
47 },
48};
49
50// ================ 创建专用客户端 ================

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected