Skip to content
Back

I am getting a 401 unauthorized response in files url

  • 1
  • Self Hosted
  • Web
  • Storage
  • Cloud
Matheus
23 Apr, 2025, 15:20

I have a Next.js application that stores user PDFs. I'm able to save them normally, but when trying to access the files using getFileView, I get a 401 Unauthorized error. I've tried numerous times and it always happens. I followed a login tutorial on YouTube from Appwrite itself, but it still didn’t work. I’ve attached files with my functions.

TL;DR
The developer is encountering a 401 Unauthorized error when trying to access files via getFileView in their Next.js application. They have followed a login tutorial from Appwrite but still face the issue. They have provided their functions for reference.
Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more