#open image in new tab shows https://cloud.appwrite.io/v1/storage

1 messages · Page 1 of 1 (latest)

wanton merlin
#

Hi, I have images on my website and use appwrite as the DB.

When I right click on my websites assets and open them on a new tab they show my websites URL as expected.

When I right click on an image that a user uploaded and request to open in a new tab it shows the appwrite URL: https://cloud.appwrite.io/v1/storage . I'd like for this to show my website, is that possible?
Maybe I haven't done all the steps to make it work? I did set a custom domian in appwrite. appwrite.website.com. It is verified / working. Maybe what I'm trying isn't possible? Maybe I just have missed a step. Any suggestions?

neon drum
#

Are you right clicking on your own site or the console?

wanton merlin
#

On my own site

honest glacier
wanton merlin
#

I do. I'm not exactly sure what it is doing for me though. I am only two months into this. By right clicking and opening in a new tab... I mean exactly that. RIght click an image on any website, it gives you options. One of those options is to open in a new tab etc

honest glacier
#

Ok

wanton merlin
#

I was tryiing to find a way to see my URL there, not cloud.appwrite.

#

I can right click on images that are built in my local files / assets - they show up with my URL

#

Assets that are uploaded onto the appwrite DB show the cloud URL.

honest glacier
#

In the start of your appwrite code you have something like this:

import { Client } from "appwrite";

const client = new Client();

client
    .setEndpoint('https://cloud.appwrite.io/v1')    // Your API Endpoint
    .setProject('<YOUR_PROJECT_ID>')                // Your project ID
;```

You can set the API endpoint to your own subdomain by having a custom subdomain added into the appwrite console for that project. 
So for example, your app could be in the domain `https://myapp.com` and then the appwrite custom domain could be in `https://backend.myapp.com` or `https://assets.myapp.com` , etc
wanton merlin
#

Perfect

#

Looking into this now. Thank you