diff --git a/src/developers/api/uploading-files.md b/src/developers/api/uploading-files.md index e824ad5..c239a13 100644 --- a/src/developers/api/uploading-files.md +++ b/src/developers/api/uploading-files.md @@ -24,13 +24,9 @@ const body = new FormData(); body.append("file", file); const data = await fetch(`${endpoint}/${tag}`, { - method: 'POST', + method: "POST", body, - headers: { - "Content-Type": "multipart/form-data", - }, -}) -.then(res => res.json()); +}).then((res) => res.json()); // use data.id ```