Click here to Skip to main content
15,887,596 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I want to upload files, images, text documents. After upload its titles are view in one page. If we click the title then the details of the file are display in another page. I am completed to upload all types of files. But i want to view all types of files. If images then show the image, if text document then it contains are display also.

Please any one can help me.....Thanks in advance
Posted
Comments
Sergey Alexandrovich Kryukov 9-May-11 1:57am    
Why this is a problem? Files are yours, the page is rendered by yourself, the set of types is defined by you. What does this mean? You should explain your problem, not forcing anyone into guesswork. Write some code and report your problems.
--SA

There is no control, DLL, or other piece of code which will allow you to display "all types of files". There are controls and DLL's which will allow you to display PDF's, Images, Videos, DOC's, XLS', even DRG's and so forth.
However, each works differently, and most of them need to be paid for separately.

Instead, look at what types you want / need to display, and concentrate on those. The aim of "any file type" is probably not achievable within a reasonable timeframe: I for example have several in-house file formats which I am not prepared to divulge! Should you try to display those?
 
Share this answer
 
Let the browser choose and allow the file to be opened. In this way, if the browser understands the file type it will open it automatically - if not, that file will not be opened and the user will be asked to choose a program. As simple as that.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900