mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
Revert "get uploads working again"
This commit is contained in:
parent
92a83da416
commit
2bc99f5b6c
@ -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) {
|
||||||
@ -215,7 +217,7 @@ export const imageDeleted = createAppAsyncThunk<
|
|||||||
|
|
||||||
type UpdateImageArg =
|
type UpdateImageArg =
|
||||||
paths['/api/v1/images/{image_name}']['patch']['requestBody']['content']['application/json'] &
|
paths['/api/v1/images/{image_name}']['patch']['requestBody']['content']['application/json'] &
|
||||||
paths['/api/v1/images/{image_name}']['patch']['parameters']['path'];
|
paths['/api/v1/images/{image_name}']['patch']['parameters']['path'];
|
||||||
|
|
||||||
type UpdateImageResponse =
|
type UpdateImageResponse =
|
||||||
paths['/api/v1/images/{image_name}']['patch']['responses']['200']['content']['application/json'];
|
paths['/api/v1/images/{image_name}']['patch']['responses']['200']['content']['application/json'];
|
||||||
|
Loading…
Reference in New Issue
Block a user