upload_total_space_used

5 upload.module upload_total_space_used()
6 upload.module upload_total_space_used()

Determine how much disk space is occupied by uploaded files.

Return value

The amount of disk space used by uploaded files in bytes.

File

modules/upload/upload.module, line 385
File-handling and attaching files to nodes.

Code

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'));
}
Login or register to post comments