Blue
White
Purple
Green
Red
Orange
Blue Light
White Light
Purple Light
Green Light
Red Light
Orange Light
Hi,Say I want each user to be limited to 50MB of files. Is there any way to save the file sizes as they are uploaded. I know that the file size appears next to the file when you save/edit them.Thanks for your help.
I used this function:https://gist.github.com/eusonlito/5099936
<?phpfunction folderSize ($dir){ $size = 0; foreach (glob(rtrim($dir, '/').'/*', GLOB_NOSORT) as $each) { $size += is_file($each) ? filesize($each) : folderSize($each); } return $size;}