NeoEntityX
NeoEntityX4w ago

Displaying PDF from external sources

What is the best way to display a PDF from an external source? a. Going w/ http-actions and setup a proxy server to display PDFs downloaded from an external URL to the user? OR b. Create /api route to create a proxy endpoint and display to the frontend? Some PDFs might be larger than 20MB in size, that's why I feel like b. is the most viable. I'm just making sure I'm not missing any in-built Convex functionality for this specific use case.
3 Replies
Convex Bot
Convex Bot4w ago
Thanks for posting in <#1088161997662724167>. Reminder: If you have a Convex Pro account, use the Convex Dashboard to file support tickets. - Provide context: What are you trying to achieve, what is the end-user interaction, what are you seeing? (full error message, command output, etc.) - Use search.convex.dev to search Docs, Stack, and Discord all at once. - Additionally, you can post your questions in the Convex Community's <#1228095053885476985> channel to receive a response from AI. - Avoid tagging staff unless specifically instructed. Thank you!
erquhart
erquhart4w ago
If they may be larger than 20mb then yeah you'll need to serve it from outside of Convex at the moment
NeoEntityX
NeoEntityXOP4w ago
Cool. I've implemented option b.

Did you find this page helpful?