Jelajahi Sumber

display information from the maximum allowed file size when you upload a document

Juan Carlos Raña 14 tahun lalu
induk
melakukan
363c2d4c2d
1 mengubah file dengan 1 tambahan dan 0 penghapusan
  1. 1 0
      main/document/upload.php

+ 1 - 0
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', '<div class="row" style="font-size:smaller;font-style:italic;"><div class="label">&nbsp;</div><div class="formw">'.get_lang('MaxFileSize').': '.ini_get('upload_max_filesize').'<br/>'.get_lang('DocumentQuota').': '.(round(DocumentManager::get_course_quota()/1000000)-round(documents_total_space($_course)/1000000)).' M</div></div>');
 
 if (api_get_setting('use_document_title') == 'true') {
 	$form->addElement('text', 'title', get_lang('Title'), array('size' => '20', 'style' => 'width:300px', 'id' => 'title_file'));