AnsweredAssumed Answered

Get file size

Question asked by dvc on Dec 18, 2009
Latest reply on Feb 7, 2010 by v912485

I need to obtain the file size and file type of for example an image. The file type is not problem, is the extension and with a switch or if instruction I can put the information but I don't know how I can obtain the size, the weight of the file.

I prefer this option instead of obtaining the size dinamically into jsp pages.

I need it for information pages, example:
PDF (image) name_file [1.230 kb]

Anybody knows how can I do this?

Thank you for your help!!