You are here

function upload_total_space_used in Drupal 4

Same name and namespace in other branches
  1. 5 modules/upload/upload.module \upload_total_space_used()
  2. 6 modules/upload/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.module, line 512
File-handling and attaching files to nodes.

Code

function upload_total_space_used() {
  return db_result(db_query('SELECT SUM(filesize) FROM {files}'));
}