Hi all...
I have file upload option in my web application. I use Struts 2.
I wanted to show a preview of the uploaded file to the user.
The uploaded file can be of any type like Image(png,jpeg,gif,etc.),
PDF,doc,txt,ppt,xls,html,etc.
As of now the user has to download the file if he wants to see it which is
not a good idea.
By "preview" I mean, only the first page of the file if its a normal txt or pdf file
and the image in small size(may be a thumbnail) if its an image file.
It would be OK even if its not possible for other files than
image files. Preview(thumbnail size) for only image files would also be
OK, but atleast for image files that the user uploads, I have to show
the preview to user.
Hope you got the idea. Looking for some help :)
Any help would be appreciated.
Thanks and regards,
Sandeep.