summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2004-02-15 15:40:06 +0000
committerDries Buytaert <dries@buytaert.net>2004-02-15 15:40:06 +0000
commit0d612d70ebd9f8fc73177352109d6f8449740d9c (patch)
tree64f98b221c8ff059fd9dc96ba36b7310f497ee08
parentbd78422715c53b5383f567abcc79a5b8ba3dad82 (diff)
downloadbrdo-0d612d70ebd9f8fc73177352109d6f8449740d9c.tar.gz
brdo-0d612d70ebd9f8fc73177352109d6f8449740d9c.tar.bz2
- Patch #5874 by Bart: made file uploads work with PHP 4.2.
-rw-r--r--includes/file.inc7
1 files changed, 7 insertions, 0 deletions
diff --git a/includes/file.inc b/includes/file.inc
index cd9761088..11893402b 100644
--- a/includes/file.inc
+++ b/includes/file.inc
@@ -11,6 +11,13 @@ define('FILE_DOWNLOADS_PUBLIC', 1);
define('FILE_DOWNLOADS_PRIVATE', 2);
define('FILE_SEPARATOR', PHP_OS == 'WINNT' ? '\\' : '/');
+// Required for file uploads to work with PHP 4.2
+define('UPLOAD_ERR_OK', 0);
+define('UPLOAD_ERR_INI_SIZE', 1);
+define('UPLOAD_ERR_FORM_SIZE', 2);
+define('UPLOAD_ERR_PARTIAL', 3);
+define('UPLOAD_ERR_NO_FILE', 4);
+
/**
* Create the download path to a file.
*/