(file: File)
| 8 | } |
| 9 | |
| 10 | export 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 |
nothing calls this directly
no outgoing calls
no test coverage detected