Got bored and trying to make the native version of appwrite console. (Yes the console sdk does bundle with RN expo) Everything going file except image loading for the projects. Example: Sites Screenshots
url = consoleSdk.storage.getFilePreview({
bucketId: 'screenshots',
fileId,
width: 1024,
height: 576,
output: 'png'
});
this is how I am fetching the url.( I also tried with getFileView()
the url retured is being loaded like this
<Image
source={{ uri: screenshotUrl }}
style={{ height: 175,borderRadius:10 }}
resizeMode="contain"
/>
I can see a 404 error on the native app
although same image loads on the browser with the url link I think this is an authentication issue. cause I see a similar 404 error on incognito mode. any workaround for this? https://github.com/imtia33/Appwrite-Native/blob/main/components/ProjectScreens/sites/sites.jsx here is the repo if you want some deep dive .
got temporary fixed the error with arrayBuffer
Recommended threads
- Issue Related to Presence
```PresenceService: upsert error – AppwriteException: user_unauthorized, The current user is not authorized to perform the requested action. (401) ...
- Refund
i started with the free version and then switch to pro and pay the fee. Before ending of the month, i switch back to free plan. got the confirmation email t...
- Unable to Migrate from Selfhosted 1.9.5 ...
I am trying to migrate my Appwrite to the cloud however it keeps failing. Errors in the Appwrite cloud logs say: { "$id": "6a4a0b2767ba6cf5348f", "$creat...