Skip to content
This repository has been archived by the owner on Jul 28, 2024. It is now read-only.

Derek/20240716 fix share to teacher message failed due to payload too large #349

Conversation

1orZero
Copy link
Collaborator

@1orZero 1orZero commented Jul 16, 2024

Cause

  • We send over the image base64 string to the backend, and the base64 string is too large to be sent over the network.

Solution

  1. We can send the image url instead of the base64 string.

Changes

  • Update the frontend to send the image url instead of the base64 string.
  • Update the API to send the image url instead of the base64 string.
  • Update the backend to handle the image url instead of the base64 string.
    • Download the image from the url.
    • Convert the image to base64 string.

Copy link

vercel bot commented Jul 16, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
chat-everwhere ✅ Ready (Inspect) Visit Preview Jul 16, 2024 8:18am

@1orZero 1orZero merged commit c779d0d into chat-everywhere Jul 16, 2024
1 of 2 checks passed
@1orZero 1orZero deleted the derek/20240716-fix-share-to-teacher-message-failed-due-to-payload-too-large branch July 16, 2024 08:15
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
1 participant