0

We have a asp.net application which allows users to upload files.

After the file has been uploaded, users get an option to download the file to view it.

We wish to also give a preview link. Clicking this link should open the file in the browser pop-up (Chrome and Firefox).

Users typically upload pdf, common image formats and word documents.

Any help would be really appreciated.

Thank You Yash

  • Do you mean you wish the user to view the document inside the browser instead of downloading it? That is not possible for Word-documents. Only images, PDF and plain text. – Anders Arpi Jun 16 '14 at 09:28
  • possible duplicate of [Opening a PDF in browser instead of downloading it](http://stackoverflow.com/questions/12086321/opening-a-pdf-in-browser-instead-of-downloading-it) – Anders Arpi Jun 16 '14 at 09:29

1 Answers1

0

Based on your requirement, I think you can use Google Docs Viewer.

Sample can be found over here

For more information this is the link of google blog explaining Google Docs Viewer.

Cœur
  • 37,241
  • 25
  • 195
  • 267
Chirag Vidani
  • 2,519
  • 18
  • 26