Back

security question

  • 0
  • Databases
  • Web
  • Storage
mina99
1 Apr, 2025, 13:59

hello i got a small question, is this code secured, is there something that should not be displayed on the client, i am talking about the image tag:

my code:

TypeScript
<script lang="ts">
    let { data } = $props();
</script>

{#each data.databaseData.documents as pet}
    <div class="pet">
        <p>title: {pet.title}</p>
        <p>description: {pet.description}</p>
        <p>by: {pet.by}</p>
        <img
            src="https://cloud.appwrite.io/v1/storage/buckets/67eab74a000065af9767/files/{pet.image}/view?project=67eaa8b10009d8a195f3&mode=admin"
            alt={pet.image}
        />
    </div>
{/each}
TL;DR
null
mina99
1 Apr, 2025, 14:00

i feel like the project=67eaa8b10009d8a195f3 and buckets/67eab74a000065af9767 shouldnt be displayed or im just wrong, also what is this mode=admin

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more