clonemeagain / attachment_preview

osTicket Plugin: Allows inline view of attachments
GNU General Public License v2.0
48 stars 16 forks source link

JPEG attachments will not showed inline with OSticket 1.17.2 --- PDF is working fine #61

Open pschneiderit opened 1 year ago

pschneiderit commented 1 year ago

JPEG attachments will not showed inline with OSticket 1.17.2 --- PDF is working fine

anyone else has this problem?

theking81 commented 1 year ago

I have also the same problem

pschneiderit commented 1 year ago

does anybody have a solution for this problem?

gabosdenes commented 1 year ago

We also have this issue, it shows small images, but nothing above 2mb.

t-oster commented 1 year ago

The problem is that with 1.17 the getConfig() does not always return the current configuration, but the default configuration (the code is using different instances etc), so that my current workaround is to just change the default values in config.php. It does not show images, because the default value for max_size is 1024KB and this is what is used instead of the users configuration.

gabosdenes commented 1 year ago

There is no max_size in ost-config.php, where did you define this?

JtheBAB commented 1 year ago

in the config.php of the plugin itself.

https://github.com/clonemeagain/attachment_preview/blob/de4d6a83fc7947d39b3493ad1ad1ef864a3a80ce/config.php#L54