Display a hint about max file size for contacts import

pull/6302/head
Aleksander Machniak 6 years ago
parent a235002ca1
commit b08a5e7873

@ -203,6 +203,7 @@ function rcmail_import_form($attrib)
$attrib += array('id' => "rcmImportForm");
$writable_books = $RCMAIL->get_address_sources(true, true);
$max_filesize = $RCMAIL->upload_init();
$form = '';
$table = new html_table(array('cols' => 2));
@ -216,7 +217,9 @@ function rcmail_import_form($attrib)
));
$table->add('title', html::label('rcmimportfile', $RCMAIL->gettext('importfromfile')));
$table->add(null, $upload->show());
$table->add(null, $upload->show()
. html::div('hint', $RCMAIL->gettext(array('id' => 'importfile', 'name' => 'maxuploadsize', 'vars' => array('size' => $max_filesize))))
);
// addressbook selector
if (count($writable_books) > 1) {

Loading…
Cancel
Save