mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
fix image upload issue
This commit is contained in:
parent
bd9786564c
commit
8a3072db1a
2
invokeai/frontend/web/dist/index.html
vendored
2
invokeai/frontend/web/dist/index.html
vendored
@ -12,7 +12,7 @@
|
|||||||
margin: 0;
|
margin: 0;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
<script type="module" crossorigin src="./assets/index-12a7dbbd.js"></script>
|
<script type="module" crossorigin src="./assets/index-f05723f9.js"></script>
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body dir="ltr">
|
<body dir="ltr">
|
||||||
|
@ -157,8 +157,6 @@ export const imageUploaded = createAppAsyncThunk<
|
|||||||
session_id,
|
session_id,
|
||||||
} = arg;
|
} = arg;
|
||||||
const { post } = $client.get();
|
const { post } = $client.get();
|
||||||
const formData = new FormData();
|
|
||||||
formData.append('file', file);
|
|
||||||
const { data, error, response } = await post('/api/v1/images/', {
|
const { data, error, response } = await post('/api/v1/images/', {
|
||||||
params: {
|
params: {
|
||||||
query: {
|
query: {
|
||||||
@ -167,8 +165,12 @@ export const imageUploaded = createAppAsyncThunk<
|
|||||||
session_id,
|
session_id,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
// @ts-ignore
|
body: { file },
|
||||||
body: formData
|
bodySerializer: (body) => {
|
||||||
|
const formData = new FormData();
|
||||||
|
formData.append('file', body.file);
|
||||||
|
return formData;
|
||||||
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
if (error) {
|
if (error) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user