| Versionen | |
|---|---|
| drupal6 – drupal7 | upload_total_space_used() |
Determine how much disk space is occupied by uploaded files.
The amount of disk space used by uploaded files in bytes.
modules/
<?php
function upload_total_space_used() {
return db_result(db_query('SELECT SUM(f.filesize) FROM {files} f INNER JOIN {upload} u ON f.fid = u.fid'));
}
?>
Kommentare
Kommentar hinzufügen