AutoGPT is the vision of accessible AI for everyone, to use and to build on. Our mission is to provide the tools, so that you can focus on what matters.
fix(frontend): profile photo form upload (#10331)
Ubbefbae861379e8
diff --git a/autogpt_platform/frontend/src/lib/autogpt-server-api/client.ts b/autogpt_platform/frontend/src/lib/autogpt-server-api/client.tsindex 3cc6355a91..28d4f98451 100644--- a/autogpt_platform/frontend/src/lib/autogpt-server-api/client.ts+++ b/autogpt_platform/frontend/src/lib/autogpt-server-api/client.ts@@ -840,7 +840,7 @@ export default class BackendAPI {throw handleFetchError(response, errorData);}- return await response.text();+ return await response.json();}private async _makeServerFileUpload(diff --git a/autogpt_platform/frontend/src/lib/autogpt-server-api/helpers.ts b/autogpt_platform/frontend/src/lib/autogpt-server-api/helpers.tsindex 5b2bdce9ec..b9a79b6222 100644--- a/autogpt_platform/frontend/src/lib/autogpt-server-api/helpers.ts+++ b/autogpt_platform/frontend/src/lib/autogpt-server-api/helpers.ts@@ -302,5 +302,5 @@ export async function makeAuthenticatedFileUpload(throw new ApiError(errorMessage, response.status, responseData);}- return await response.text();+ return await response.json();}