the FormData object to which the value will be added
the key under which the value will be stored in the FormData object
the value to be added to the FormData object
addValueToFD(formData, 'string', 'value');
addValueToFD(formData, 'array', ['value1', 'value2']);
addValueToFD(formData, 'obj', { key: 'test' });
addValueToFD(formData, 'file', file);
Generated using TypeDoc
Adds a value to a FormData object, handling different value types appropriately.