Get Size of a FormData Object Payload
To do so, you need to make your calculations conditional upon data type.
To do so, you need to make your calculations conditional upon data type.
You'll want to push checkbox values into an array only if they are checked.
Make a POST request containing form data as the payload using Axios.