Hi All,I have a dct where i have browsed to a document and in TPL I want to code in such a way that I should be able to display the size and the icon for the uploaded document in html. For example if the document is a pdf of say 100kb size ,I should be able to see pdf icon and pdf size in my html alongwith the document name.Please help me out.Regards,Vibha
I have a dct where i have browsed to a document and in TPL I want to code in such a way that I should be able to display the size and the icon for the uploaded document in html. For example if the document is a pdf of say 100kb size ,I should be able to see pdf icon and pdf size in my html alongwith the document name.Please help me out.Regards,Vibha
able to display the size and the icon for the uploaded document in html
If whatever you said means: That you have a browser item in your DCT and your user is supposed to select a file by browsing the workarea, then all you need to do is 1. Replace the browser item with a custom cgi-callout 2. which would allow you to do the same thing as browsing for a file in your workarea and selecting its path3. At the same time you can evaluate the file size and type4. Once you have done that, you can insert that info into your two readonly DCT fields, one for file size and one for associated image path (for the icon)