
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?

The URL that’s returned should be the PDF? So you could just pull the file with that URL.

Yh, that’s what I’ve been initially trying to do using langchain’s webPDFLoader but it’s been proving difficult for me. I’m no where near an expert in this. I’m still following a tutorial 😞

How are you supposed to load the PDF?
Recommended threads
- Is it possible to cancel an ongoing file...
When uploading a file to storage, is there a way to cancel the upload in progress so the file is not saved or partially stored?
- File level security overrides File Token...
are file tokens not supposed to work with file level security? so if i make it such that only the user who uploads the file has read access and i then create a ...
- Can't start docker containers beacuse no...
Hi, I'm testing my app where I upload also files to appwrite storage. As I suspect, I've filled up my disk. Now I can't start Appwrite. Could I ask for help wit...
