Rank 1: Thread
I’m following a tutorial and trying to load a pdf from a bucket in nextjs. I’ve looked through the storage api and the closest end point I’ve seen is “get file for view” but it only returns a url rather than the actual pdf content.
Context, I’m trying to implement the common chat with pdf feature. I need to load the pdf first and then split it….
I’d also prefer to store the pdf first in the bucket and then bring it down rather than just receiving the document from the user’s file input.
How would you advice I implement this pls?