From 363c2d4c2dd67244c54d3d336c2fb1903c6d211b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juan=20Carlos=20Ra=C3=B1a?= Date: Tue, 27 Jul 2010 19:10:22 +0200 Subject: [PATCH] display information from the maximum allowed file size when you upload a document --- main/document/upload.php | 1 + 1 file changed, 1 insertion(+) diff --git a/main/document/upload.php b/main/document/upload.php index 4e02ef02f7..43989cdfad 100755 --- a/main/document/upload.php +++ b/main/document/upload.php @@ -502,6 +502,7 @@ if (!$is_certificate_mode) { $form = new FormValidator('upload', 'POST', api_get_self(), '', 'enctype="multipart/form-data"'); $form->addElement('hidden', 'curdirpath', $path); $form->addElement('file', 'user_upload', get_lang('File'), 'id="user_upload" size="45"'); +$form->addElement('html', '
 
'.get_lang('MaxFileSize').': '.ini_get('upload_max_filesize').'
'.get_lang('DocumentQuota').': '.(round(DocumentManager::get_course_quota()/1000000)-round(documents_total_space($_course)/1000000)).' M
'); if (api_get_setting('use_document_title') == 'true') { $form->addElement('text', 'title', get_lang('Title'), array('size' => '20', 'style' => 'width:300px', 'id' => 'title_file'));