Jump to content

Page Record Image via API


Recommended Posts

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

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

  • 3 weeks later...
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

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

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...