diff options
Diffstat (limited to 'inc/io.php')
-rw-r--r-- | inc/io.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/inc/io.php b/inc/io.php index ea20502bb..aed27d88e 100644 --- a/inc/io.php +++ b/inc/io.php @@ -292,10 +292,10 @@ function io_mkdir_ftp($dir){ * @author Andreas Gohr <andi@splitbrain.org> * @author Chris Smith <chris@jalakai.co.uk> */ -function io_download($url,$file,$useAttachment=false,$defaultName=''){ +function io_download($url,$file,$useAttachment=false,$defaultName='',$maxSize=2097152){ global $conf; $http = new DokuHTTPClient(); - $http->max_bodysize = 2*1024*1024; //max. 2MB + $http->max_bodysize = $maxSize; $http->timeout = 25; //max. 25 sec $data = $http->get($url); |