MCPcopy Create free account
hub / github.com/cloudinary/cloudinary_npm / encodeFieldPart

Function encodeFieldPart

lib/uploader.js:659–667  ·  view source on GitHub ↗
(boundary, name, value)

Source from the content-addressed store, hash-verified

657}
658
659function encodeFieldPart(boundary, name, value) {
660 return [
661 `--${boundary}\r\n`,
662 `Content-Disposition: form-data; name="${name}"\r\n`,
663 '\r\n',
664 `${value}\r\n`,
665 ''
666 ].join('');
667}
668
669function encodeFilePart(boundary, type, name, filename) {
670 return [

Callers 1

call_apiFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected