Skip to content
Snippets Groups Projects
Commit 45cacd87 authored by Sander August Heggland Schrader's avatar Sander August Heggland Schrader
Browse files

Fixed image upload

parent d76a0a55
Branches
No related tags found
1 merge request!104Image community
Pipeline #180563 failed
...@@ -324,8 +324,8 @@ export function postNewRating(ratingInfo) { ...@@ -324,8 +324,8 @@ export function postNewRating(ratingInfo) {
export function postNewImageCommunity(image) { export function postNewImageCommunity(image) {
return axios return axios
.post(API_URL + "images", image, { .post(API_URL + "images", {body: image}, {
headers: tokenHeader(), headers: {...tokenHeader(), "Content-Type": "image/png"},
}) })
.then((response) => { .then((response) => {
console.log(response.data); console.log(response.data);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment