Back

Appwrite image display error and update fail

  • 0
  • Flutter
  • Storage
_manildev
20 Jan, 2025, 15:00

Hello,

I have two problem :

1st problem : I'm trying to show image in "Circle avatar" with Network Image by ID after uploading but I got error. Image won't shown (see attached image)

2nd problem: When i try to update the image in Appwrite Storage by the ID, it didn't work. The old image is still in the storage

How can i resolve all of this ?

TL;DR
Developers are experiencing an issue with displaying images in a Circle Avatar using a network image and updating images in Appwrite Storage. They are getting errors and unable to successfully update the image. Possible causes include permission issues (401 unauthorized) and invalid user sessions. Make sure the user has permission to CRUD files in the bucket.
Kenny
20 Jan, 2025, 15:11

Do you have permissions set on that bucket or image?

Kenny
20 Jan, 2025, 15:11

401 means unauthorized

_manildev
20 Jan, 2025, 15:19
_manildev
20 Jan, 2025, 15:19
_manildev
20 Jan, 2025, 15:19

For permissions, only users can CRUD file in the bucket

Kenny
20 Jan, 2025, 15:42

Are you sure there is current a valid user session?

Kenny
20 Jan, 2025, 15:42

Can you do account.get()

_manildev
20 Jan, 2025, 15:49

yes there is a current session. I try account.get() and it work. I can get the user ID. I can also update a value in appwrite db

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