fix: ensures multipart/form-data using _payload flattens field data before sending

This commit is contained in:
James
2022-01-04 09:30:07 -05:00
parent 07c3f757e6
commit ae44727fb9

View File

@@ -269,7 +269,7 @@ const Form: React.FC<Props> = (props) => {
const getUnflattenedValues = useCallback(() => reduceFieldsToValues(contextRef.current.fields), [contextRef]);
const createFormData = useCallback(() => {
const data = reduceFieldsToValues(contextRef.current.fields);
const data = reduceFieldsToValues(contextRef.current.fields, true);
const file = data?.file;