0

I have a .mpp file in my localfolder onclick I want to open in a browser without getting direct download in chrome.

Is it possible to do directly open in chrome or IE ?

I have tried through XmlHtttp request but through this I can able to open only .txt files not an .XLS AND .mpp file.

Brian Tompsett - 汤莱恩
  • 5,753
  • 72
  • 57
  • 129
gautam
  • 27
  • 1
  • 6

1 Answers1

0

i want to open in a browser without getting direct download in chrome.

You are searching for the http header Content-Disposition:

Content-Type: application/octet-stream
Content-Disposition: inline; filename="filename.mpp"
Community
  • 1
  • 1
Cyrbil
  • 6,341
  • 1
  • 24
  • 40
  • Hi Cybril, i want to do in client side(through javascript) only how do i do that? – gautam Jun 22 '15 at 10:52
  • Mpp is a file type that is not natively supported in chrome, your options are: Convert to a supported file format or: Use an [extension](https://chrome.google.com/webstore/detail/project-viewer-365-free/kmpghmkgkalhonankenfklpmdgnilapp) able to read this format in chrome . – Cyrbil Jun 22 '15 at 11:00