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
- Storage files aren’t showing on mobile
hi, what can be the problem? i have a storage and there are images in it, the permissions are read for All Users, everything is fine on desktop, but on mobile t...
- Delete storage files all at once
I am using Appwrite Cloud. I want to delete all storage files in my bucket similar to how I can select all documents in a collection and delete them all at once...
- Storage images are not showing on mobile
Hi, can anyone help me? I have some images on the storage, and it is not shown on mobile, on desktop everything is fine.