You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Upload a file to Appwrite Storage and make it public.
Use the SDK's getFilePreviewURL (e.g., in react-native-appwrite) to generate a preview URL.
Try to open the generated URL in a browser or use it in an / tag.
The image does not load (403 or blank).
Manually add ?project=YOUR_PROJECT_ID to the URL.
Now the image loads as expected.
👍 Expected behavior
Automatically append the ?project=... parameter to the preview URL for public files,
👎 Actual Behavior
The SDK does not add the ?project=... parameter, and this requirement is not documented.
As a result, public file previews do not work out of the box.
Manually appending ?project=... to the URL fixes the issue.
🎲 Appwrite version
Version 0.10.x
💻 Operating system
MacOS
🧱 Your Environment
Expo, React Native
👀 Have you spent some time to check if this issue has been raised before?