MCPcopy Create free account
hub / github.com/codecombat/codecombat / saveFile

Function saveFile

app/core/api/files.js:20–26  ·  view source on GitHub ↗
({ url, filename, mimetype, path, force }, options)

Source from the content-addressed store, hash-verified

18 },
19
20 saveFile ({ url, filename, mimetype, path, force }, options) {
21 if (options == null) { options = {} }
22 return fetchJson('/file', _.assign({}, options, {
23 method: 'POST',
24 json: { url, filename, mimetype, path, force }
25 }))
26 }
27}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected