0

I use a file uploader and a user can upload .pdf, .jpg, .doc etc.

I have a grid like below at the web page:

enter image description here

At that grid I show the list of documents. And I want to show them like below:

enter image description here

Any idea? How can I do it? Are there any example? I want to show a small size sight of documents in order to faciliate understanding at the first look. If there were only image, I could use thumbnail for it but there are docs and pdf also..

(And the each sights should be an image of each document)

Stack Over
  • 625
  • 1
  • 6
  • 10

1 Answers1

0

If you are running your server on windows you can use the shell's thumbnails. See this. That way you will get thumbnails for the images and a different icon dependng on the file type. Maybe you can even get it to work with PDF and DOC files, but that's a matter of fidding with the shell. On my machine (64-bit) I don't get thumbnails but there are fixes available.

Update: I followed the instructions at the end of this article and got thumbnails woking on my shell.

In order for this to work you will need to install MS office and adobe reader on the server, or at least create fake file associations.

Community
  • 1
  • 1
AlexDev
  • 4,049
  • 31
  • 36