[imp] Disabling zip preview

Michael M Slusarz slusarz at horde.org
Thu Nov 21 06:14:56 UTC 2013


Quoting SSRI <ssri_abo at u-paris2.fr>:

> Hello,
>
> We have to tried to disable Zip file preview by using the inline
> parameter in both config/mime_drivers.local.php and
> imp/config/mime_drivers.local.php :
>
> 'zip' => array(
>          'inline' => false,
>
> However, previewing zip files still works.

As expected.  'inline' has to do with inline rendering of the ZIP file  
itself.  There is no practical way of viewing zip data on a browser at  
this time, so 'inline' doesn't actually do anything (you can actually  
set to true and nothing will change).

The "preview" of the zip file - better described as a listing of the  
ZIP contents - is not rendering the ZIP data directly.  Thus the  
'inline' option has no effect on this view.

A better example is images.  If you set 'inline' => true, all images  
will be directly displayed at full size within the message page.  If  
'inline' => false, you will only see a thumbnail of the image.

> The only way to disable it was to set :
>
> 'zip' => array(
>          'disable' => true,
>
> in both config/mime_drivers.local.php and imp/config/mime_drivers.local.php
>
> Inline parameter works fine for disabling HTML preview.
>
> Is this parameter works differently for zip MIME ?

No.  See above.

michael

___________________________________
Michael Slusarz [slusarz at horde.org]



More information about the imp mailing list