avatar Albo Pro Mar 3. 2010. 5:56 pm
This follows on from my Lightbox question - http://www.activecollab.com/forums/post/25227/#post25227)

How are image and QuickTime movies handled as attachments? I'd like to use the Lightbox module for QT files and it seems possible with a bit of modification to the .js file. Doing this however doesn't work.

I think it's because of the way attachments are handled upon upload and I can see that an image file has a different url than a movie file, other that just name obviously.

.jpg: http://xxx/attachments/220?disposition=inline&project_id=13

.mov: http://xxx/attachments/217?disposition=attachment&project_id=13

Am I correct in thinking that this might be the reason it doesn't work?
avatar Ilija Studen Staff Mar 4. 2010. 3:43 am
When disposition is set to attachment, browser is forced to download the file and skips displaying it inline.

At the moment, activeCollab offers inline display for images only - all other file types are forced as attachments. For details, check Attachment::getViewUrl() method (attachment model is defined in resources module).
avatar Albo Pro Mar 4. 2010. 7:39 am
Thanks for the details! Where would I find the "Attachment::getViewUrl()"?

Is it in a particular php file?
avatar Ilija Studen Staff Mar 4. 2010. 8:05 am
It's in /activeceollab/application/modules/resources/models/attachments/Attachment.class.php
avatar Albo Pro Mar 4. 2010. 8:17 am
Excellent, thanks Ilija.