* @param {string} name * @param {string|!File} value * @param {string=} opt_filename * @override
(name, value, opt_filename)
| 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 | /** |
nothing calls this directly
no test coverage detected