Skip to content

Commit

Permalink
docs: code sample shouldn't set headers
Browse files Browse the repository at this point in the history
  • Loading branch information
insertish authored Jun 26, 2024
1 parent c6bb039 commit 1659317
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/developers/api/uploading-files.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
```
Expand Down

0 comments on commit 1659317

Please sign in to comment.