diff options
| author | Savetheinternet <savetheinternet@n0v4.com> | 2010-11-03 19:44:24 +1100 |
|---|---|---|
| committer | Savetheinternet <savetheinternet@n0v4.com> | 2010-11-03 19:44:24 +1100 |
| commit | 690f206a63967805c1d61806683947ac6f2a2175 (patch) | |
| tree | 8827df646be8e50a7e10dd6a65d111b72fc89db2 /inc/config.php | |
| parent | 0b50ef702f46441d151cba1dfd9c373352178e20 (diff) | |
Added a maximum filesize for image uploads
Diffstat (limited to 'inc/config.php')
| -rw-r--r-- | inc/config.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/inc/config.php b/inc/config.php index f0414cda..b2bfa3fe 100644 --- a/inc/config.php +++ b/inc/config.php @@ -40,11 +40,15 @@ define('ERROR_NOMOVE', 'The server failed to handle your upload.'); define('ERROR_FILEEXT', 'Unsupported image format.'); define('ERR_INVALIDIMG','Invalid image.'); + define('ERR_FILSIZE','The file was too large.'); // For resizing, max values define('THUMB_WIDTH', 200); define('THUMB_HEIGHT', 200); + // Maximum image upload size in bytes + define('MAX_FILESIZE', 1048576); // 10MB + define('DIR_IMG', 'src/'); define('DIR_THUMB', 'thumb/'); define('DIR_RES', 'res/'); |
