Skip to content
Snippets Groups Projects
Commit 0b4cb190 authored by johnshaughnessy's avatar johnshaughnessy
Browse files

Remove unnecessary comment.

parent be6148e3
No related branches found
No related tags found
No related merge requests found
...@@ -28,12 +28,6 @@ export const upload = file => { ...@@ -28,12 +28,6 @@ export const upload = file => {
return fetch(mediaAPIEndpoint, { return fetch(mediaAPIEndpoint, {
method: "POST", method: "POST",
body: formData body: formData
// We do NOT specify a Content-Type header like so
// headers: { "Content-Type" : "multipart/form-data" },
// because we want the browser to automatically add
// "Content-Type" : "multipart/form-data; boundary=...--------------<boundary_size>",
// See https://stanko.github.io/uploading-files-using-fetch-multipart-form-data/ for details.
}).then(r => r.json()); }).then(r => r.json());
}; };
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment