MCPcopy Create free account
hub / github.com/emscripten-core/emscripten / sendFileToServer

Function sendFileToServer

test/browser_reporting.js:25–27  ·  view source on GitHub ↗
(filename, contents)

Source from the content-addressed store, hash-verified

23}
24
25function sendFileToServer(filename, contents) {
26 fetch(`${reportingURL}/upload?file=${encodeURIComponent(filename)}`, { method: "POST", body: contents });
27}
28
29function logMessageToServer(filename, message) {
30 fetch(`${reportingURL}/log?file=${filename}`, { method: "POST", body: message })

Callers 1

doReftestFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected