Enabled upload progress indicator (text-only)
This commit is contained in:
parent
bc855cbfcd
commit
9093ebba46
2 changed files with 9 additions and 1 deletions
|
@ -855,6 +855,11 @@ class calendar extends rcube_plugin
|
|||
*/
|
||||
public function attachment_upload()
|
||||
{
|
||||
// Upload progress update
|
||||
if (!empty($_GET['_progress'])) {
|
||||
rcube_upload_progress();
|
||||
}
|
||||
|
||||
$event = get_input_value('_id', RCUBE_INPUT_GPC);
|
||||
$calendar = get_input_value('calendar', RCUBE_INPUT_GPC);
|
||||
$uploadid = get_input_value('_uploadid', RCUBE_INPUT_GPC);
|
||||
|
|
|
@ -471,6 +471,9 @@ class calendar_ui
|
|||
if (!$attrib['id'])
|
||||
$attrib['id'] = 'rcmUploadForm';
|
||||
|
||||
// Enable upload progress bar
|
||||
rcube_upload_progress_init();
|
||||
|
||||
// find max filesize value
|
||||
$max_filesize = parse_bytes(ini_get('upload_max_filesize'));
|
||||
$max_postsize = parse_bytes(ini_get('post_max_size'));
|
||||
|
|
Loading…
Add table
Reference in a new issue