We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I need the size of the file when confirm in filemaneger.
this my current callback
window.setURL = function(items) { items.icon items.is_file items.is_image items.name items.thumburl items.time item.URL }
How get the size of file
The text was updated successfully, but these errors were encountered:
You can achieve this by modifying config/lfm.php.
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:
items
window.setURL = function(items) { items.forEach((item) => { console.log(item.size) } }
Sorry, something went wrong.
No branches or pull requests
I need the size of the file when confirm in filemaneger.
this my current callback
How get the size of file
The text was updated successfully, but these errors were encountered: