Open B-MNSN opened 1 year ago
You can achieve this by modifying config/lfm.php
.
Change from:
'item_columns' => ['name', 'url', 'time', 'icon', 'is_file', 'is_image', 'thumb_url'],
to below:
'item_columns' => ['name', 'url', 'time', 'icon', 'is_file', 'is_image', 'thumb_url', 'size'],
Then in you code block, you can iterate through items
and get file size like:
window.setURL = function(items) {
items.forEach((item) => {
console.log(item.size)
}
}
I need the size of the file when confirm in filemaneger.
this my current callback
How get the size of file