Marc
Marc
TTCTheo's Typesafe Cult
Created by Marc on 9/2/2024 in #questions
Send upload video link to the client before or after upload to upload thing?
I'm building a LLM/image/video centralized tool (tryblend.ai) and was wondering about the best way to upload/return url to client. Let's say I generate a stable video using Falai and get the URL from them. Currently, right after the generation, I upload it and then return to the client the URL from UploadThings. Should I instead return the Falai URL to the client, display it to the URL, call the server function to save the URL, and when done, replace the URL the user sees? What's the best way of doing it here?
2 replies