We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ef40d78 commit 15d879bCopy full SHA for 15d879b
1 file changed
src/api/image/image.tsx
@@ -1,12 +1,12 @@
1
-import { authClient } from "../client";
+import client from '../client';
2
3
export const postImage = async (imageFile: File) => {
4
const formData = new FormData();
5
- formData.append("image", imageFile);
+ formData.append('image', imageFile);
6
7
- return await authClient.post("/api/v1/images", formData, {
+ return await client.post('/api/v1/images', formData, {
8
headers: {
9
- "Content-Type": "multipart/form-data",
10
- },
+ 'Content-Type': 'multipart/form-data'
+ }
11
});
12
};
0 commit comments