PDF and Image file handling

Hi,

On my latest installation of Aras open (12 SP9) clicking on pdf and image file (png, jpeg, etc) Files attached to Document item type automatically downloads it.  Changing Chrome setting related to how PDF files are handled or using different browsers seems to have no effect. 

I would like PDF and image files to open in a separate browser window as it did on an older installation of Aras 12 SP0.  Are there any server related settings that control how these file types are handled out of box?

Thanks.

-Sam 

Parents
  • I have a same problem. Aras 11sp12 can view pdf online but with Aras 12sp9, the pdf file is downloaded (both use only Chrome browser). I have to tried edit vault.config, web.config but not succeeded.

    The work around is use extension Undisposition on Chrome

  • Any input from Aras employees monitoring this forum will be much appreciated.  It is a big convenience if users can preview files in browser window before downloading.

    Thanks.

  • I am not sure if there are currently much Aras employees monitoring this forum. Must of the time forum members help themselves already, so they had become a little bit too laid back.

    What will happen if you change the last mimeType setting in the vault.config from attachment to inline? Will it then open the file in the browser?

    <mimeType value="*">
    <headers>
    <add name="Content-Disposition" value="attachment"></add>
    </headers>
    </mimeType>

    This one is the setting used for each unspecified file type. 

    If this works and the pdf (but of course also each other file) will be opened, than I think I know the reason. It´s chrome itself.

    Check out this one:

    ----

    https://groups.google.com/a/chromium.org/g/blink-dev/c/bbxAGu90LgM/m/aKNlwPAMAQAJ

    Summary

    With the removal of Flash, there is no longer the need to return anything for navigator.plugins and navigator.mimeTypes. These APIs were used primarily for a) probing for Flash player support, or b) fingerprinting. As such, we'd like to return empty for these two properties. Gecko already switched to returning *only* Flash starting with Firefox 52, and returning empty as of Firefox 85.

    ----

    Maybe we can find a solutions similar to the one used for SAP:

    https://blogs.sap.com/2016/02/13/display-pdf-in-sapui5-prevent-from-downloading/

    --

    Other hints from SAP community:

    https://github.com/SAP/openui5/issues/3007

    https://github.com/SAP/openui5/issues/3152

  • It is the same behavior with other browsers such as Opera and Edge, and other files types such as png, jpeg etc.  For some reason "inline" setting for content disposition is ignored in Aras 12 SP9.

Reply Children
No Data