0
votes

I want to fully disable the preview of any kind of file for shared/published files in Alfresco.

    Alfresco Community v4.2.0
    (r56674-b4848) schema 6033

    Spring Surf and Spring WebScripts - v1.2.0
    (Release 1331)

In Alfresco, you are able to share/publish any kind of file. By sharing/publishing the file, you will get a link to access this shared file. Other users like clients/customers for example are able to view the shared/published file and can download it via a link like this:

    https://alfresco.example.com/share/s/9QJiV6PNSAqAlxZDnFVQlQ

My problem is, that I hate this preview regarding some browser and preview display issues. Some kind of files like ZIP-files aren't able to be displayed in the preview and this causes an empty preview, which sometime causes an missing download button.

I also just don't want the preview. Well, how can I disable/deactivate the whole preview (only) for shared/published files, that the preview does not appear, if I visit the share-link?

Thanks in advance!

1

1 Answers

2
votes

Override in web-extension alfresco/site-data/pages/quickshare.xml

And remove the sub-component with id web-preview

BTW: you know if you disable the preview users won't have any ability to download or view the file.