<p>I have a system that stashes log reports in to Artifactory and send out a link to the report. Right now the link I send is of the form:
https://my-artifactory:/artifactory/my_repo/reports/some_topic/2022/02/11145845.txt</p>
<p>When this is opened in a browser, the file is offered as a download. However it'd be much nicer if it would display directly in the browser instead. Is there an alternative URL I can use or a setting in Artifactory that will enable this functionality? Seems there are a few related questions online but no clear answers about it.</p>

CC BY-SA 4.0
2022-02-15T01:50:06.177Z
Have you tried modifying the settings for MIME types? https://www.jfrog.com/confluence/display/JFROG/Artifactory+Configuration+Descriptors
mikequentel
CC BY-SA 4.0
2022-02-15T06:59:51.700Z
@mikequentel that's helpful, but not really. "Viewable" types defined in the mimetypes.xml can be viewed in the browser which is exactly what I want, except that I can't figure out a url I can send someone that will take them exactly to the view of the contents. Best I can find is a way to place them a couple of clicks away from viewing the contents, which is disappointing
James T Snell
<artifacts><artifactory>
jFrog Artifactory: How to get a URL to display txt file contents in the browser
James T Snell
# jFrog Artifactory: How to get a URL to display txt file contents in the browser

(Asked by: username_0 on 2022-02-14)

I have a system that stashes log reports in to Artifactory and send out a link to the report. Right now the link I send is of the form:
https://my-artifactory:/artifactory/my\_repo/reports/some\_topic/2022/02/11145845.txt

When this is opened in a browser, the file is offered as a download. However it'd be much nicer if it would display directly in the browser instead. Is there an alternative URL I can use or a setting in Artifactory that will enable this functionality? Seems there are a few related questions online but no clear answers about it.

**Tags:** artifacts, artifactory

> **Comments:**
> **username_1**: Have you tried modifying the settings for MIME types? https://www.jfrog.com/confluence/display/JFROG/Artifactory+Configuration+Descriptors  
> **username_0**: @username_1 that's helpful, but not really. "Viewable" types defined in the mimetypes.xml can be viewed in the browser which is exactly what I want, except that I can't figure out a url I can send someone that will take them exactly to the view of the contents. Best I can find is a way to place them a couple of clicks away from viewing the contents, which is disappointing  

---

## 0 answers

