Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion

osTicket v1.10 (stable) and Maintenance Release v1.9.15 are now available! Go get it now

view attached images

Vesion 1.10

If I put an image inside the text, or the user sends an email with the image inline in the text, it is shown inline. Fine.

If the image is an attachment, wheter the message is created by api, by agent, or by customer email, it is only shown as 
{paperclip} imagename as link, filesize, no image.
If I click on the link, the browser just offers to download it, not view it.

I'd like to se a preview, and be able to see it in full size,


  • Please help us to help you by reading and following the posting guidelines located in this thread: Please read before requesting assistance.  The more information you give us the better we will be able to assist you. Thank you.

    No osTicket version.
    No mock up.
    No errors specified.
  • The version is clearly stated: Version 1:10

    The wish is clearly explained;,
    However, After writing this; I managed to edit the 
     to show the image, without any styling:

            <span class="attachment-info">
            <i class="icon-paperclip icon-flip-horizontal"></i>
            <a class="no-pjax truncate filename" href="<?php echo $A->file->getDownloadUrl();
                ?>" download="<?php echo Format::htmlchars($A->getFilename()); ?>"
                target="_blank"><?php echo Format::htmlchars($A->getFilename());
            ?></a><?php echo $size;?>
    <!-- My addition -->
            <?php $attachment_type=explode("/",$A->file->type,2);
            if ($attachment_type[0]=="image") {
            <img src='<?php echo $A->file->getDownloadUrl(); ?>'>
    <!-- End addition -->

    There is no error message.
  • I tried to attach a file to the previous entry, but I can't see it. I'll try again.
Sign In or Register to comment.