So I am trying to create a knowledge base/CMS type of platform with Xano as my backend.
I have hit a bit of a wall with a feature I am trying to update the images of a record. Not by replacing the images but by adding an additional image to the list without having to go through the backend to add them every time.
I have a POST API function stack that has loops that should create the metadata. The front-end bindings and workflow figured out (I think).
But I can only seem to get
{“code”:“ERROR_CODE_INPUT_ERROR”,“message”:“Missing param: field_value”,“payload”:{“param”:“field_value”}}
to appear whenever I do a test run of the function stack.
I have attempted to try instead using the add or even add/edit table data. But that just removes all the images that were already in the table record.
This is what I am currently working with. Any help is appreciated.
that error is pointing out that you have “field_value” input (or variable) that is used somewhere inside your Xano function stack.
Try to open each action in your function stack and look closely at each input/variable your actions are bound to.
In some cases, Xano may incorrectly interpret your data types (instead of “input” or “variable” there may be “expression” or “text”). I’m 90% sure that’s the case
I think I’m heading in the right track. I’ve entered a field value to test for a specific field (RIP the images for that record).
I have found that the output variables for my add or edit table function all come up as text. Does this sound like it would be the reason?
I have looked through the filter options, but I’m not sure how to change this. Or if I need to be looking higher up at the create image metadata, as this also returns as a text variable.
I’m so close I can feel it but i am not sure how to change these variables types.
Sorry I might not be explaining myself very well. Let me try and give some context.
The page I am currently working on has a image slider with multiple images bound to the Table1 file colmun already. That is working fine the images load and dispaly no issues.
The idea is to be able to from the frontend be able to upload an image and then store it into the backend so it would - after reloading the data - include this image in the slider as well.
It only needs to be adding one image at a time. The column is set to list to allow for multiple images to be stored.
But I seem to run into an issue with the API’s as they don’t preserve the already exsisting images present in the record.
I have some images already in my table just to have a base line and you can see which record I have picked to be the test subject.
Thank you so much! Great new I managed to create a function stack that updates the record to include a new value without destroying the old ones.
Sadly it does not seem to like the images very much. I am assuming that is to do with the images being uploaded as raw files with no metadata so xano cannot recognise the information be provided.
I am going to play around some more and hopefully I can resolve that.