I'm using getFileView on client side to generate a URL for my images. I want to do the same in Node, but there it returns a File buffer instead of an URL Object. The docs is really unhelpful with this.
It returns the file buffer
Yes, that's my problem. It's inconsistent to the client side API. How am I supposed to get the URL of a file? Now I'm constructing the URL on my own, and I need to hardcode my site's URL.
The web sdk is the only one that returns a url because that's how it's done in web
Don't you have the endpoint in some variable?
What difference does it make if I put in in a variable? It's still hardcoded...
Typically, the endpoint is in some env variable or constants file so it's not really hardcoded.
Anyways, we do have plans to add a separate method: https://github.com/appwrite/sdk-generator/issues/557
even if I put out in env var, I have to go an change if I move to another domain. anyway, i'm glad to hear there are pans to support this
Recommended threads
- HTTP Error 500 ''
Hello to everyone, I'm a Flutter developer and actually I'm developing an app using Appwrite.. during my tests and also massive ones I've noticed something we...
- Websites hosted on my appwrite sites hav...
Hello, all my websites hosted on appwrite sites are not running I am getting this message "This site can’t be reached drivehub.appwrite.network took too long t...
- Can't really use the S3 storage device
hi, I've linked my local MinIO Instance (it's just for testing, not for prod.) to my appwrite instance, when i'm uploading a file it's getting uploaded to the S...