Jump to content

Recommended Posts

Posted

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.

Posted
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. 

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

Posted
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. 

Posted
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.

  • Recently Browsing   0 members

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