JustinHawk Posted March 22 Share Posted March 22 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. Link to comment Share on other sites More sharing options...
JustinHawk Posted March 23 Author Share Posted March 23 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. Link to comment Share on other sites More sharing options...
virap1 Posted April 7 Share Posted April 7 @JustinHawk, did you find a way to make this work? Link to comment Share on other sites More sharing options...
JustinHawk Posted April 7 Author Share Posted April 7 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. Link to comment Share on other sites More sharing options...
virap1 Posted April 7 Share Posted April 7 @JustinHawk, did you find a way to make this work? Thank you very much. Link to comment Share on other sites More sharing options...
JustinHawk Posted April 7 Author Share Posted April 7 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. Link to comment Share on other sites More sharing options...
virap1 Posted April 7 Share Posted April 7 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. Link to comment Share on other sites More sharing options...
Recommended Posts