You are not logged in.

Announcement

 Téléchargez la dernière version stable de GLPI      -     Et vous, que pouvez vous faire pour le projet GLPI ? :  Contribuer
 Download last stable version of GLPI                      -     What can you do for GLPI ? :  Contribute

#1 2022-12-19 03:19:10

mateusfig
Member
Registered: 2013-03-02
Posts: 4

Get ticket content with images along it

GLPI returns ticket content with URL src=glpiURL.com/front/document.send.php?docid=5200&tickets_id=29697 for <img> tag. The image is along the text of the content of ticket, not only a appended documet apart.

I need get the HTML content with the image because URL is only acessible if the user is logged in GLPI and there are CORS issues also.

Last edited by mateusfig (2022-12-19 03:21:06)

Offline

#2 2022-12-30 04:19:26

mateusfig
Member
Registered: 2013-03-02
Posts: 4

Re: Get ticket content with images along it

I just found this out. It's little tricky. I get the image URL from the database and replace it for the acessible API URL with the right tokens along it.

Offline

#3 2023-01-11 16:36:39

aziz
Member
Registered: 2021-03-30
Posts: 109

Re: Get ticket content with images along it

did you find out how to do this ??

Offline

#4 2023-01-11 17:50:44

mateusfig
Member
Registered: 2013-03-02
Posts: 4

Re: Get ticket content with images along it

Using Javascript

aziz wrote:

did you find out how to do this ??

Offline

Board footer

Powered by FluxBB