Demo Discussion
Forum Config Examples Contributions Vulnerabilities
  Discussion forum about ELOG  Not logged in ELOG logo
icon5.gif   Attachments (again), posted by David Pilgram on Wed Aug 31 14:00:17 2011 
    icon2.gif   Re: Attachments (again), posted by Andreas Luedeke on Wed Aug 31 15:00:11 2011 
       icon2.gif   Re: Attachments (again), posted by Stefan Ritt on Wed Aug 31 15:13:02 2011 
          icon2.gif   Re: Attachments (again), posted by David Pilgram on Wed Aug 31 15:29:32 2011 
       icon1.gif   Re: Attachments (again), posted by David Pilgram on Wed Aug 31 15:20:48 2011 
          icon2.gif   Re: Attachments (again), posted by Andreas Luedeke on Tue Sep 6 12:00:13 2011 
             icon2.gif   Re: Attachments (again), posted by David Pilgram on Tue Sep 6 12:39:39 2011 
Message ID: 67106     Entry time: Wed Aug 31 15:13:02 2011     In reply to: 67105     Reply to this: 67109
Icon: Reply  Author: Stefan Ritt  Author Email: stefan.ritt@psi.ch 
Category: Question  OS: All  ELOG Version: 2.9.0-2411 
Subject: Re: Attachments (again) 

Andreas Luedeke wrote:
> In my case the original .pdf file is elsewhere, I've no need to have duplicates scatted in various logbooks, and
> while ideally that would also be true of the thumbnail, it is fair enough for this to be stored in each logbook
> where it is required. This removes the issue of how to have an attachment in a different logbook (other than by
> links, which would get rather tiresome to have to keep making).
>
> Anyone any ideas?

If you just want to show a thumbnail of an attachment in a public logbook, then just add a link to it. like

<img src="https://abk.web.psi.ch/tmp/t.png" alt="" />

or in your example you show the thumbnail in the hidden logbook by adding in the text body:

<img src="<your-host-url>/public/110705_235520_whatthis-0.png" alt="" />

Of course the attachment has to be in the public logbook and the link in the hidden one.

Sure, but that works only from a hidden logbook into a public one, not the other way, but I think this is what David wants. Since the hidden attachment is not accessible from the public logbook, there is no way around that other than physically copy the message, then strip maybe the text. He is concerned about having the same attachment twice on disk, which I cannot fully understand. Even large attachments are maybe 10 or 20 MB, otherwise they take forever to go through your browser. With a modern 1 TB disk these are 50.000 attachments... 

ELOG V3.1.5-fe60aaf