Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

img tags do not support data:image/png;base64 #7

Open
jm-nab opened this issue May 31, 2024 · 2 comments
Open

img tags do not support data:image/png;base64 #7

jm-nab opened this issue May 31, 2024 · 2 comments

Comments

@jm-nab
Copy link

jm-nab commented May 31, 2024

Example:

<img class="fr-fic fr-dii" data-fr-image-pasted="true" height="265" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAes...=="/>
@tmelko-genesys
Copy link
Collaborator

To specify this issue a bit more:

knowledge-html-converter leaves image src attributes intact and it is the knowledge api that rejects this content when creating/updating a document variation:

{
    "message": "Image url should be valid and start with https://",
    "code": "bad.request",
    "status": 400,
    "entityName": "Variation",
    "messageWithParams": "Image url should be valid and start with https://",
    "messageParams": {},
    "contextId": "e747ba05-5113-43af-b920-4a3a1ef428e8",
    "details": [],
    "errors": []
}

Currently it's not possible to create a document variation with an image where the image url is "data:....".

@tmelko-genesys
Copy link
Collaborator

tmelko-genesys commented Jun 20, 2024

We cannot allow large images to be embedded in the article content, so those should rather be uploaded, for example with using /api/v2/responsemanagement/responseassets/uploads. https://developer.genesys.cloud/organization/responsemanagement-apis

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants