MCPcopy Create free account
hub / github.com/LeoninCS/DevDesk / uploadHtmlFile

Function uploadHtmlFile

frontend/src/api/htmlHost.ts:10–19  ·  view source on GitHub ↗
(file: File)

Source from the content-addressed store, hash-verified

8}
9
10export function uploadHtmlFile(file: File) {
11 const formData = new FormData();
12 formData.append("file", file);
13
14 return http.post<UploadHtmlResponse>("/html/upload", formData, {
15 headers: {
16 "Content-Type": "multipart/form-data",
17 },
18 });
19}
20

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected