| | |
| | | $RCMAIL->output->send(); |
| | | } |
| | | |
| | | function rcube_upload_progress_init() |
| | | function rcube_upload_init() |
| | | { |
| | | global $RCMAIL; |
| | | |
| | |
| | | $RCMAIL->output->set_env('upload_progress_time', (int) $seconds); |
| | | } |
| | | } |
| | | |
| | | // find max filesize value |
| | | $max_filesize = parse_bytes(ini_get('upload_max_filesize')); |
| | | $max_postsize = parse_bytes(ini_get('post_max_size')); |
| | | if ($max_postsize && $max_postsize < $max_filesize) |
| | | $max_filesize = $max_postsize; |
| | | |
| | | $RCMAIL->output->set_env('max_filesize', $max_filesize); |
| | | $max_filesize = show_bytes($max_filesize); |
| | | $RCMAIL->output->set_env('filesizeerror', rcube_label(array( |
| | | 'name' => 'filesizeerror', 'vars' => array('size' => $max_filesize)))); |
| | | |
| | | return $max_filesize; |
| | | } |
| | | |
| | | /** |