cancel
Showing results for 
Search instead for 
Did you mean: 

How to get Alfresco Node size ?

ravireddye
Champ in-the-making
Champ in-the-making

Hello Team ,

How to get  file size in alfresco ? while fetching file size i'm getting "org.mozilla.javascript.Undefined@0

Please help me how to get file size !  node.size;

and one more issue , if  i did paseInt() , i'm getting "?" 

Thanks 

RaviReddyEmani

1 REPLY 1

kintu_barot
Star Collaborator
Star Collaborator

If you want to know the size of a single node you can use node-browser.

You can use the following javascript code

var size = utils.getNodeFromString("<Your noderef>").getSize();
logger.log(size);

You can also use available Java APIs.

Regards,

Kintu

ContCentric

Regards,
Kintu