diff options
author | vincent-peugnet <v.peugnet@free.fr> | 2020-05-18 17:08:11 +0200 |
---|---|---|
committer | vincent-peugnet <v.peugnet@free.fr> | 2020-05-18 17:08:50 +0200 |
commit | 121af5f84ad9262e5c509dc1dd741166ca1dc3de (patch) | |
tree | 3b75d4870894045d2d28b156db8637112c42b337 /app/view | |
parent | ceff73a9a7ab210034e5d8b0452d18135ce7137d (diff) | |
download | wcms-121af5f84ad9262e5c509dc1dd741166ca1dc3de.tar.gz wcms-121af5f84ad9262e5c509dc1dd741166ca1dc3de.zip |
file :show max upload size
fix #101
Diffstat (limited to 'app/view')
-rw-r--r-- | app/view/templates/media.php | 2 | ||||
-rw-r--r-- | app/view/templates/mediamenu.php | 5 |
2 files changed, 6 insertions, 1 deletions
diff --git a/app/view/templates/media.php b/app/view/templates/media.php index ea87fba..42654db 100644 --- a/app/view/templates/media.php +++ b/app/view/templates/media.php @@ -10,7 +10,7 @@ $this->layout('layout', ['title' => 'media', 'stylesheets' => [$css . 'home.css' <?php $this->insert('backtopbar', ['user' => $user, 'tab' => 'media', 'pagelist' => $pagelist]) ?> -<?php $this->insert('mediamenu', ['user' => $user, 'pathlist' => $pathlist, 'mediaopt' => $mediaopt]) ?> +<?php $this->insert('mediamenu', ['user' => $user, 'pathlist' => $pathlist, 'mediaopt' => $mediaopt, 'maxuploadsize' => $maxuploadsize]) ?> <main class="media"> diff --git a/app/view/templates/mediamenu.php b/app/view/templates/mediamenu.php index f79b2bc..37598a0 100644 --- a/app/view/templates/mediamenu.php +++ b/app/view/templates/mediamenu.php @@ -7,6 +7,11 @@ <form id=addmedia action="<?= $this->url('mediaupload') ?>" method="post" enctype="multipart/form-data"> <label for="file">🚀 Upload file(s)</label> <input type='file' id="file" name='file[]' multiple required> + + <p> + Max upload size : <?= $maxuploadsize ?> + </p> + <input type="hidden" name="dir" value="<?= $mediaopt->dir() ?>"> <input type="submit" value="upload"> </form> |