JustinHawk Posted March 22, 2023 Posted March 22, 2023 I am trying to set record image via Pages API using following variable. fields[record_record][filename] = 'Raw Content' But none of variable is working, but if i create custom field and post data to that it is working. fields[4][filename] = 'Raw Content' Let me know if i am doing something wrong.
JustinHawk Posted March 23, 2023 Author Posted March 23, 2023 16 hours ago, JustinHawk said: record_record record_image* On 6/1/2021 at 3:49 PM, Stuart Silvester said: It doesn't look like we specifically handle images/uploads via the REST API for this endpoint. I have logged an internal bug report for this. @Stuart Silvester was this fixed? I am trying to do tha same for record_image, but this isn't working.
JustinHawk Posted April 7, 2023 Author Posted April 7, 2023 Just now, virap1 said: @JustinHawk, did you find a way to make this work? IPS isn't handling that in their code. Tried sending in "record_image" field, but that fails. Though the same method works if I send image in a custom field.
virap1 Posted April 7, 2023 Posted April 7, 2023 @JustinHawk, did you find a way to make this work? Thank you very much.
JustinHawk Posted April 7, 2023 Author Posted April 7, 2023 1 minute ago, virap1 said: @JustinHawk, did you find a way to make this work? Thank you very much. Two ways actually. 1. Using selenium, to upload image. 2. Modified the API file and added a code to update function that accept base64 version of image with filename. Code example would be in Gallery API file. Would have shared but currently on mobile.
virap1 Posted April 7, 2023 Posted April 7, 2023 30 minutes ago, JustinHawk said: 2. Modified the API file and added a code to update function that accept base64 version of image with filename. Code example would be in Gallery API file. Would have shared but currently on mobile. Thank you so much. I would be grateful if could send me the code for this.
Recommended Posts