Changeset 794

Show
Ignore:
Timestamp:
01/11/07 13:45:01 (2 years ago)
Author:
sven
Message:

more uploaded file size guff

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • devel/htaccess-dist

    r748 r794  
    1414 
    1515# PHP defaults to allowing file uploads of max 2MB, below is example option for 5MB. 
    16 # NB: Adjusting value may not work, depending on other configured php and apache limits 
     16# NB: Adjusting value may not work, depending on other configured php and apache limits. 
     17# for more info see http://php.net/manual/en/features.file-upload.php and http://httpd.apache.org/docs/2.0/mod/core.html#limitrequestbody 
     18# post_max_size should be slightly larger than upload_max_filesize, but the default is usually 8MB anyway. 
     19#php_value post_max_size 8388608 
    1720#php_value upload_max_filesize 5242880 
    1821 
  • devel/units/files/folder_view.php

    r769 r794  
    117117            $filetitle = urlencode($title); 
    118118            $originalname = stripslashes($file->originalname); 
    119             $filemenu = round(($file->size / 1000000),4) . "Mb "; 
     119            $filemenu = round(($file->size / 1048576),4) . "MB "; 
    120120            $icon = $CFG->wwwroot . "_icon/file/" . $file->ident; 
    121121            $filepath = $CFG->wwwroot . "$username/files/$folder/$ident/" . urlencode($originalname);