- Patch #5874 by Bart: made file uploads work with PHP 4.2.
parent
bd78422715
commit
0d612d70eb
|
@ -11,6 +11,13 @@ define('FILE_DOWNLOADS_PUBLIC', 1);
|
||||||
define('FILE_DOWNLOADS_PRIVATE', 2);
|
define('FILE_DOWNLOADS_PRIVATE', 2);
|
||||||
define('FILE_SEPARATOR', PHP_OS == 'WINNT' ? '\\' : '/');
|
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.
|
* Create the download path to a file.
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Reference in New Issue