Receive form data that is url-encoded or of type 'multipart/form-data'
To do so, you need to make your calculations conditional upon data type.
Minimize server requests by validating file size before uploading.
You'll want to push checkbox values into an array only if they are checked.
This task is possible in two lines using the FormData constructor and Object.fromEntries()
Make a POST request containing form data as the payload using Axios.