JavaScript Fetch Post request with file – formdata
I’m trying to send a POST request to this API, and it includes a file, specifically as multipart/form-data. I’m adding the file from the project directory, as it is a local file.
I’m trying to send a POST request to this API, and it includes a file, specifically as multipart/form-data. I’m adding the file from the project directory, as it is a local file.