mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 14:18:52 +00:00
enable free disk space check
git-svn-id: file:///svn/phpbb/trunk@4773 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
c85f62bddc
commit
8d71ae256c
1 changed files with 1 additions and 4 deletions
|
@ -264,9 +264,7 @@ function upload_attachment($filename, $local = false, $local_storage = '')
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
// TODO - Check Free Disk Space - need testing under windows [commented out]
|
||||||
// TODO
|
|
||||||
// Check Free Disk Space - need testing under windows [commented out]
|
|
||||||
if ($free_space = disk_free_space($config['upload_dir']))
|
if ($free_space = disk_free_space($config['upload_dir']))
|
||||||
{
|
{
|
||||||
if ($free_space <= $filedata['filesize'])
|
if ($free_space <= $filedata['filesize'])
|
||||||
|
@ -276,7 +274,6 @@ function upload_attachment($filename, $local = false, $local_storage = '')
|
||||||
return $filedata;
|
return $filedata;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
*/
|
|
||||||
|
|
||||||
$filedata['thumbnail'] = 0;
|
$filedata['thumbnail'] = 0;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue