Skip to content
Sites Hackathon is live / Aug 29 - Sep 12
Back

getFileViewURL in react native not returning the actual URL

  • 0
  • React Native
  • Cloud
xyz
4 Sep, 2025, 04:23

Hi everyone, im trying to get the file url from storage but when i use the getFileViewURL method i get a url that looks like this:

"https://fra.cloud.appwrite.io/v1/storage/buckets/[object%20Object]/files/undefined/view?project=myprojectid"

this is the weird part i guess [object%20Object]/files/undefined/

TL;DR
Issue is with the format of the URL returned by getFileViewURL method in react native storage. The URL includes unexpected "[object%20Object]/files/undefined/" part. This could be due to incorrect parameters passed or a bug in the method. You may need to double-check the input parameters or consider troubleshooting the method itself. Solution: Upon review, it seems like there might be incorrect parameters being passed to the getFileViewURL method causing the unexpected URL formation. Double-check the parameters being passed or review the method implementation for potential bugs.
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