title: MVC 5 - jQuery - Displaying FileContentResult Without Downloading
body: <p>I'm trying to display the results of a <code>FileContentResult</code> MVC Action in an <code>object</code> tag. I can easily display files that have a preview option; .txt, .pdf, .jpg, etc. The problem comes in when there are files that don't have a preview option. <br/><br/>My problem isn't figuring out which type of files work, my problem is figuring out how to stop them from downloading (or trying to download).<br/><br/>I've tried making an ajax call to grab the file, which I can do, but I don't know how to display it after that. <br/><br/>Any tips or ideas? This is the object I get back from the jquery call.<br/><a href="https://i.stack.imgur.com/QcX5o.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/QcX5o.png" alt="enter image description here"></a>
  <br/>It's essentially just the mimetype, the name, and the byte array. Here's a snap of the object in MVC:<br/><a href="https://i.stack.imgur.com/3usvb.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/3usvb.png" alt="enter image description here"></a><br/>This doesn't seem like it should be as hard as it seems. Am I just missing something obvious? <br/><br/> Thanks!</p>