Running OTRS 6.0.8. I have two tickets, each with an attachment. One is 10923456.PDF and the other is failed_thing.pdf
In ticket view...
failed_thing.pdf when clicked shows in the browser
10923456.PDF when clicked becomes a download that must be downloaded, saved and opened to read.
I have the system config set to inline for attachments. I cannot determine what OTRS is looking for in the email in the ticket that determines whether it functions as line or download. Looking at the html for both they appear to have the same values in the html.
Working
Code: Select all
<div id="TicketAttachment14368" class="AttachmentData Hidden">
<div class="Attachment InnerContent">
<div class="AttachmentElement">
<h3>
<a href="/otrs/index.pl?Action=AgentTicketAttachment;TicketID=3616;ArticleID=14368;FileID=1" target="attachment" >failed_thing.pdf</a>
</h3>
<p></p>
</div>
</div>
</div>
...
<ul class="ArticleAttachments">
<li title="failed_thing.pdf">
<h5>failed_thing.pdf</h5>
Unknown
–
136.9 KB
<div>
<a class="" href="/otrs/index.pl?Action=AgentTicketAttachment;TicketID=3616;ArticleID=14368;FileID=1" title="Download failed_thing.pdf" target="attachment" >
<i class="fa fa-download"></i>
</a>
Code: Select all
<div id="TicketAttachment14433" class="AttachmentData Hidden">
<div class="Attachment InnerContent">
<div class="AttachmentElement">
<h3>
<a href="/otrs/index.pl?Action=AgentTicketAttachment;TicketID=3624;ArticleID=14433;FileID=1" target="attachment" >10923456.PDF</a>
</h3>
<p></p>
</div>
</div>
</div>
...
<ul class="ArticleAttachments">
<li title="10923456.PDF">
<h5>10923456.PDF</h5>
Unknown
–
18.6 KB
<div>
<a class="" href="/otrs/index.pl?Action=AgentTicketAttachment;TicketID=3624;ArticleID=14433;FileID=1" title="Download 10923456.PDF" target="attachment" >
<i class="fa fa-download"></i>
</a>
- Why does failed_thing.pdf open inline in the browser but 10923456.PDF downloads without displaying inline?
- Both show as "Unknown" with a size. Is there a filetype table or hash somewhere in OTRS that determines a file type?
- Is it the case of the suffix? pdf vs PDF?
--Jeff