Closed adamcios closed 2 years ago
Hi,
Maybe a duplicate of #12276. Can you check if #12281 solves this issue ?
Regards
A temporary workaround is If you paste the image, then right click it -> Image... -> Save it will save and display correctly.
I looked into it and I think I understand what's going on.
This affect all the Rich text input elements.
If you check the source of the image you will see something like this
file:///C:/Users/***/AppData/Local/Temp/msohtmlclip1/01/clip_image001.png
And in your browser console
Not allowed to load local resource: file:///C:/Users/***/AppData/Local/Temp/msohtmlclip1/01/clip_image001.png
Basically when you upload an image to rich text GLPI seems to understand he has to send it to the server and link it in the rich text. But when an image is stored in the clipboard it fails to do so.
Here's the case I noted with results (From what I understand) :
Windows + Shift + S
I hope it helps, feel free to message me for further investigation
Not allowed to load local resource
is related to your browser security configuration, and GLPI cannot change it. I am not even sure it is possible to catch such event to display a warning to user.
I know this is related to your chrome settings, but for example when you paste an image from your filesystem inside a rich text.
GLPI takes care of sending it to the server. I would guess by creating an input
of type='file'
filling it and sending the form, or something alongs those lines.
If you open the network tab while copy pasting an image in the Rich text you'll see that it makes some call to the server.
Hi @PandaRoux8 ,
It should be fixed by #12862.
I close the issue as it is a duplicate of #12276 + #12849.
Code of Conduct
Is there an existing issue for this?
Version
10.0.2
Bug description
When I write an article into the knowledge base and paste pictures into the text, only the picture icon appears as an object, but the picture is not displayed. It is listed in the documents tab as an attached file.There are no entries in the logs for this event, it looks as if the attached image file is not displayed at the place of pasting
Relevant log output
No response
Page URL
No response
Steps To reproduce
No response
Your GLPI setup information
Information about system installation and configuration
Server
GLPI constants
Libraries
SQL replicas
Notifications
Plugins list
Anything else?
No response