Skip to content

🐛 Bug Report: Public Storage file preview requires manual ?project=... param in SDK (not documented, not added automatically) #60

@eessaarrtt

Description

@eessaarrtt

👟 Reproduction steps

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?

  • I checked and didn't find similar issue

🏢 Have you read the Code of Conduct?

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions