Enabled upload progress indicator (text-only)

This commit is contained in:
Aleksander Machniak (Kolab Systems) 2011-07-04 13:57:01 +02:00
parent bc855cbfcd
commit 9093ebba46
2 changed files with 9 additions and 1 deletions

View file

@ -855,6 +855,11 @@ class calendar extends rcube_plugin
*/ */
public function attachment_upload() public function attachment_upload()
{ {
// Upload progress update
if (!empty($_GET['_progress'])) {
rcube_upload_progress();
}
$event = get_input_value('_id', RCUBE_INPUT_GPC); $event = get_input_value('_id', RCUBE_INPUT_GPC);
$calendar = get_input_value('calendar', RCUBE_INPUT_GPC); $calendar = get_input_value('calendar', RCUBE_INPUT_GPC);
$uploadid = get_input_value('_uploadid', RCUBE_INPUT_GPC); $uploadid = get_input_value('_uploadid', RCUBE_INPUT_GPC);

View file

@ -471,6 +471,9 @@ class calendar_ui
if (!$attrib['id']) if (!$attrib['id'])
$attrib['id'] = 'rcmUploadForm'; $attrib['id'] = 'rcmUploadForm';
// Enable upload progress bar
rcube_upload_progress_init();
// find max filesize value // find max filesize value
$max_filesize = parse_bytes(ini_get('upload_max_filesize')); $max_filesize = parse_bytes(ini_get('upload_max_filesize'));
$max_postsize = parse_bytes(ini_get('post_max_size')); $max_postsize = parse_bytes(ini_get('post_max_size'));