summaryrefslogtreecommitdiff
path: root/inc/config.php
diff options
context:
space:
mode:
authorPaul Merrill <napalminc@gmail.com>2010-11-04 04:30:23 -0700
committerPaul Merrill <napalminc@gmail.com>2010-11-04 04:30:23 -0700
commit455f0c2602350f229e6f58d624790c3d7448a68b (patch)
tree9dcc84e33f757846e37ae896c829e433bed2d4d7 /inc/config.php
parent2eddc7a4ee2a48ca6197c4dba2f8f563a81354aa (diff)
Improved large file size error message.
Diffstat (limited to 'inc/config.php')
-rw-r--r--inc/config.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/inc/config.php b/inc/config.php
index 44dc60ec..fbaca0d8 100644
--- a/inc/config.php
+++ b/inc/config.php
@@ -40,7 +40,7 @@
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.');
+ define('ERR_FILESIZE', 'Maximum file size: %maxsz% bytes<br>Your file\'s size: %filesz% bytes');
define('ERR_MAXSIZE', 'The file was too big.');
// For resizing, max values
@@ -48,7 +48,7 @@
define('THUMB_HEIGHT', 200);
// Maximum image upload size in bytes
- define('MAX_FILESIZE', 1048576); // 10MB
+ define('MAX_FILESIZE', 10*1024*1024); // 10MB
// Maximum image dimensions
define('MAX_WIDTH', 10000);
define('MAX_HEIGHT', MAX_WIDTH);