MCPcopy Index your code
hub / github.com/ampproject/amphtml / append

Method append

src/form-data-wrapper.js:201–208  ·  view source on GitHub ↗

* @param {string} name * @param {string|!File} value * @param {string=} opt_filename * @override

(name, value, opt_filename)

Source from the content-addressed store, hash-verified

199 * @override
200 */
201 append(name, value, opt_filename) {
202 // Safari 11 breaks on submitting empty File values.
203 if (value && typeof value == 'object' && isEmptyFile(value)) {
204 this.formData_.append(name, new Blob([]), opt_filename || '');
205 } else {
206 this.formData_.append(name, value);
207 }
208 }
209}
210
211/**

Callers

nothing calls this directly

Calls 2

isEmptyFileFunction · 0.85
appendMethod · 0.45

Tested by

no test coverage detected