How to get Alfresco Node size ?

cancel
Showing results for 
Search instead for 
Did you mean: 
ravireddye
Member II

How to get Alfresco Node size ?

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
kintu_barot
Senior Member

Re: How to get Alfresco Node size ?

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