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?
1 Reply
markr
markr4mo ago
Either is reasonable, returning the falai url for the first pass might be a slightly better experience since they see something quicker, then using uploadthing url in subsequent requests as the persisted url makes sense.
Want results from more Discord servers?
Add your server