Glossary coding Term Page
FormData
Browser-native container for sending form values and files with fetch or XHR.
Core Idea
FormData walks through a <form> element (or manual append calls), stores each field name with its value or File, and emits a multipart/form-data stream. Passing it directly to fetch or XMLHttpRequest keeps encoding rules consistent with the platform.
Why It Matters Here
Mathbong's dashboards and upload flows turn FormData into plain objects for validation, then submit the raw payload so files survive transit. Combining it with AbortController lets users cancel oversized uploads without corrupting state.