Fixed avatar image not displaying
This commit is contained in:
1 parent
7f7226d6e5
commit
31e4c7b110
3 files changed
+7
-24
No files matched your search
@@ -48,7 +48,7 @@ export const update = createAsyncThunk(
|
||||
await new Promise((resolve) => setTimeout(resolve, 1500));
|
||||
|
||||
const fd = new FormData();
|
||||
const imageResult = await axios.get(form.file);
|
||||
const imageResult = await axios.get(form.file, { responseType: "blob" });
|
||||
fd.append("firstname", form.firstname);
|
||||
fd.append("lastname", form.lastname);
|
||||
fd.append("profileImage", imageResult.data);
|
||||
|
||||
Reference in new issue
Block a user