Rank 3: Container
I'm using url to load images in flutter by providing a url and editing the file id. It works fine but it's considered as a guest loading the image. I wanted to know the safety of this method
Votes
0
Replies
11
Participants
Unknown
Messages
12
Rank 3: Container
I'm using url to load images in flutter by providing a url and editing the file id. It works fine but it's considered as a guest loading the image. I wanted to know the safety of this method
Admin
Safety? It depends on you and the permissions you require
Rank 3: Container
It needs me to set the permissions to any user to load image
Rank 3: Container
The issue is images in pagination need to be catched so that they don't reload when i change state. That's why I'm opting for url
Rank 3: Container
If I use a future to load a uint8list then it will refetch again when I change state by adding data to the list
Admin
If you want to make it private, you can still access the files by passing a JWT token. See https://github.com/appwrite/appwrite/discussions/3474#discussioncomment-3108707
Rank 3: Container
Image.network(
'https://{hostname}/v1/storage/buckets/{bucketId}/files/{fileId}/view?project={projectId}',
headers: {"x-appwrite-jwt": jwt}
)
Rank 3: Container
Like this right.?
Rank 3: Container
Thanks alot
Rank 3: Container
Cab you define dimensions in this url.??
Admin
Use the preview API instead
Rank 3: Container
Okay