Back

Storage-Files and status/code in sdk-for-web

  • 0
  • Self Hosted
  • Web
sokratesli
11 Apr, 2024, 06:13

Is it possible that appwrite/sdk-for-web 14.0.0 does not return a response code/status when accessing storage files? the code/status is returned with the rest-call. Objective: Depending on access or team authorization, a user may or may not have access to an image. if no access is granted, a message should appear. how can I solve this differently (react)? thank you. appwrite 1.5.4 and appwrite/sdk-for-web 14.0.0

TL;DR
Developers are having an issue with appwrite/sdk-for-web 14.0.0 not returning a response code/status when accessing storage files. They need a solution to display a message when a user does not have access to an image in react. Solution: One way to solve this is by checking the SDK's documentation or reaching out to the appwrite support team for help. You can also try handling the response differently in your React app based on the user's authorization status.
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