Hello,
after installing the new version of YetiForce 4.4.0 I can not add photos to the template. This is important for printed reports, invoices, offers from the system on paper with the company logo.
After adding the image in the jpg, png etc format to the pdf template it does not appear on the printout.
I would like to receive a company logo on paper on a PDF file. In the future, many people will probably add photos to PDF templates.
Path to reproduce the problem:
The problem concerns files with the extension jpg png etc.
I found a workaround by changing the file format to base64. Then everything works correctly.
I checked and the same problem occurs on gitstable.yetiforce.com
Please, let me know what the problem may be
Greeting
Wojtek
Hello, please enclose the template.
The system by default blocks the loading of external photos, so you need to add the domain to the trusted ones and then upload.
Wojtek, I suppose you are Polish, so have a look here as it is in Polish and was very similar to your issue.
@KatarzynaUlichnowska
so you need to add the domain to the trusted ones and then upload
How to do it?
Thank you very much for your response and support.
@mariuszkrzaczkowski thanks!
@turek93 @vovpff
Do you guys know how it work? Is it like this?
'PURIFIER_ALLOWED_DOMAINS' => [www.github.com/*;www.yetiforce.com/*],
or maybe?
'PURIFIER_ALLOWED_DOMAINS' => [github.com],
'PURIFIER_ALLOWED_DOMAINS' => [yetiforce.com],
or maybe?
'PURIFIER_ALLOWED_DOMAINS' => [.github.com/],
'PURIFIER_ALLOWED_DOMAINS' => [.yetiforce.com/],
Also any idea how to add local image?
Maybe?
'PURIFIER_ALLOWED_DOMAINS' => [127.0.0.1:123/],
or Maybe?
'PURIFIER_ALLOWED_DOMAINS' => [C:\image\logo.jpg],
or Maybe?
'PURIFIER_ALLOWED_DOMAINS' => [\storage\logo.jpg],
'PURIFIER_ALLOWED_DOMAINS' => ['github.com','yetiforce.com','img.yetiforce.com'],
I am using yetiforce 4.4.0 and have added this, but it is not saving in the template. Why?
'PURIFIER_ALLOWED_DOMAINS' => ['mycrm.domain.eu'],
I am trying to add images from crm directory itself <img src="/logo.png">
but after saving and finishing the images are disappearing ...
I tried svg but is not working as well
open a new issue, this one is now out of date
Most helpful comment
https://github.com/YetiForceCompany/YetiForceCRM/issues/7705#issuecomment-414208372