
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
- How to run queries to get the storage li...
I installed the n8n (self-hosting) and community node n8n-nodes-nappwrite. I tried to get the storage list files more than 25 records. But I cannot find the w...
- Storage video view
Hi! When I want to view a video i uploaded to the storage, it immediaetly starts downloading, so I can't stream it. Is there a way to make it work? I want to al...
- Web SDK chunk upload to Storage without ...
As discussed in this older thread (https://discord.com/channels/564160730845151244/1216821517749321808), the Read permission for Any needs to be enabled in orde...
