FTP is on the web so it's proper for the file to transfer then open in the associated app. If you want say a text file to open in the browser, then associate them with the browser.
I have an FTP server that hosts data files. When I click on those files they are automatically downloaded. I want them to open in the browser instead. How can I accomplish this?
My server runs a CentOS 7 operating system, using Tomcat.
Some have suggested creating an .mtaccess file in my /var/www/html directory, but the only examples they gave are to force file downloads. I want to do the opposite.
Thank you for your time.

Chowhound
Comic Vine
GameFAQs
GameSpot
Giant Bomb
TechRepublic