I have a file on this path http://localhost:4502/assetdetails.html/content/dam/we-retail/en/activities/hiking/abc.mp4, when I try to access this video file by direct link like this: http://localhost:4502/content/dam/we-retail/en/activities/hiking/abc.mp4, Video gets downloaded . I know it is expected behavior.
what if we need to open assets in Browser rather than downloading it ?
I am facing this issue in AEM 6.5 (without any service packs). I tried all possible tricks with Content Disposition filter like check/uncheck flag , putting proper values in included resource paths , but still it downloads my video assets rather than streaming in browser.
I am referring video assets through direct DAM link .
May I request if someone can be able to help me out here .
Thanks in advance.
This behavior is same in earlier version as well. One way is to put "Included Resource Paths & Content Types" like shown below however it is very restrictive way as regular expression does not work and path prefix has to be put up.
I suggest you just uncheck the all resources and handle the same at apache level. So basically all the assets will be shown in-browser for streaming and then whenever you want to override this behavior, do that at dispatcher layer by adding for example below snippet:
Header set Content-Disposition attachment
@arvindp66202646 I also faced similar issue while performing AEM upgrade from 6.3 to 6.5 SP4
Reason - Reason is the response header ‘content-disposition: attachment’.
Solution : There are two possible solutions -
#Solution2 - Second solution is to handle the same at apache level and dispatcher level - the approach suggested by @SameerBhalerao in this thread.