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
- Custom domain for Google Auth
Hello! I connected my custom domain to my Appwrite project, but I can't get the Google login/consent screen to show my domain instead of the Appwrite domain. I...
- CLI - get Database Totals
Is there a way with the Appwrite CLI to get table row totals (count)❓
- relationships bug or error idk
hey every one, am using am using appwrite on a project and ran into a problem where by created a relationship and two way to be specific and it is stuck on proc...