Image URL problem
Options
![Moises Amselem](https://us.v-cdn.net/6037124/user_avatars/4539444.jpg)
Moises Amselem
Member ✭
Hi,
I try to add to my Xano database an Image. My API has an Input JSON like that:
"photo": {
"path":"https://public.files.arengu.com/forms/165555697126336337/files/d75a9a6c5b7049c798fe9a11cf054709/perfil jorge fernandez.jpg",
"name": "perfil jorge fernandez.jpg",
"type": "image",
"size": "54167",
"mime": "image/jpeg",
"meta": {
"width": 512,
"height": 512
}
}
The problem is that the reponse image URL is my Xano domain + the path combined and then the url is wrong.
How I could solve it?
I try to add to my Xano database an Image. My API has an Input JSON like that:
"photo": {
"path":"https://public.files.arengu.com/forms/165555697126336337/files/d75a9a6c5b7049c798fe9a11cf054709/perfil jorge fernandez.jpg",
"name": "perfil jorge fernandez.jpg",
"type": "image",
"size": "54167",
"mime": "image/jpeg",
"meta": {
"width": 512,
"height": 512
}
}
The problem is that the reponse image URL is my Xano domain + the path combined and then the url is wrong.
How I could solve it?
Comments
-
Hi, Moises. Can you link me the function you're working with, either here or via support chat so I can take a look? If you're uploading an image to the Xano database, the new response would typically just be a path to your new image located on Xano, so I'd like to see exactly what's going on in your function stack.
-
Hi Chris, do you mean my endpoint?
https://x8ki-letl-twmt.n7.xano.io/api:el1fnj4I/tally_test_forms -
And this is my input: in JASON:
{
"Name": "Alberto",
"Tags": [
"Franchise",
"B2C",
"Real State"
],
"photo": {
"path": "https://public.files.arengu.com/forms/165555697126336337/files/d75a9a6c5b7049c798fe9a11cf054709/perfil jorge fernandez.jpg",
"name": "perfil jorge fernandez.jpg",
"type": "image",
"size": "54167",
"mime": "image/jpeg",
"meta": {
"width": 512,
"height": 512
}
}
} -
Thanks! The endpoint you linked is just a query all records -- can you link me to the endpoint that takes in this input? Just the URL in your address bar when working inside it.
-
Following as I also need to upload an image into Xano from a URL similar to what is working through.
-
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