05-29-2019 07:47 AM
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
05-30-2019 07:27 AM
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
Explore our Alfresco products with the links below. Use labels to filter content by product module.