Getting the image url

Options
Hello!

I'm brand new to Xano, so I apologize if this is a simple question. I couldn't find the answer anywhere. I'm uploading an image from Appgyver as base64 to an endpoint I created, "upload/image". It gets the file and I was able to set it up to add to a data table "Media Items". 

I get this nice response, but what I want to get is a URL to use to access the image. Any ideas?
{
"path": "/vault/dse3uKfX/g-ruUxmf/mKZglw../file-b444dd.png",
"name": "file-b444dd.png",
"type": "image",
"size": 83,
"mime": "image/png",
"meta": {
"width": 1,
"height": 1
}
}

Comments

  • Sean T. Conrad
    Options
    I solved it by setting the response to be the new data record, not the image object. I'm not sure why it works, but it works.
    [image.png]
  • Michael Udinski
    Michael Udinski Administrator

    ADMIN

    Options
    The Create Image from file just provides the metadata that is stored in the Xano database. Your image URL will always be your Xano domain + the path combined.... We provide you the URL with database requests responses on the fly for convenience.