cancel
Showing results for 
Search instead for 
Did you mean: 

How to get file size and path

steve_cx
Champ in-the-making
Champ in-the-making
Hi,

How can I get a file size and path from "node"?

Or is there have another method to get file size and path?

Please help.

Thx all.
2 REPLIES 2

mrogers
Star Contributor
Star Contributor
From which interface?

And an additional complication is that a node can have many paths.   

For a start there's nodeService.gatPath and nodeService.getPaths.

File Size can be read directly from the cm:content property.    The other property you will probably want is the File Name which is the cm:name

steve_cx
Champ in-the-making
Champ in-the-making
it works.
thx for help.