Want to get the content of YAML files instead of downloading them (AEM 6.5)
Hi,
I have some yaml files loaded as dam assets and some of yaml files are directly uploaded under the /content/project/page/jcr:content/root/myComponent/file with the help of cq/gui/components/authoring/dialog/fileupload. When I try to get the content of the files(for example /content/dam/project/file.yaml) I got the response with the header Content-Disposition: attachment; filename="file.yaml" and download window opens.
I tried to change some OSGI configs, tried to write servlet and got no success.
What can I do to get the content of the yaml files?