Getting the image url
Options
![Sean T. Conrad](https://us.v-cdn.net/6037124/user_avatars/2333985.jpg)
Sean T. Conrad
Member ✭
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
}
}
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
-
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] -
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.
Categories
- All Categories
- 53 ? Announcements
- 47 ? Releases
- 37 ? Welcome
- 983 ? Help! I'm a Noob
- 125 ? No-Code Front-Ends
- 633 ? Working with APIs
- 439 ? Transforming data
- 126 ? Connect Xano to ...
- 50 ?? Find an Expert
- 348 ❓Other questions
- 35 ? Security
- 22 ✂️ Snippets
- 19 ? Showcase
- 7 ?️ Xano Chatter
- 62 ? Video Tutorials
- 171 ? Request a feature
- 229 ? Report a Bug
- 19 ? Templates & Extensions
- 7 ? Feedback