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 .
Recommended threads
- Deploying to Sites will not work. NextJS
It’s been many times I have attempted to deploy to Appwrite and it’s always failed. The deployment itself works, the logs show it works perfectly, however when ...
- Team Preferences Invisible on Console
Hello, I got the problem that team preferences are not visible within the Appwrite console. I did an API request to verify that there are preferences set and on...
- Unable to add user preferences within au...
When i click on the add preference button nothing happens. There are other buttons within the page which seem unresponsive, including the multi-authentication t...