Add frontend check for file size before starting to upload

Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
Julius Härtl
2018-06-28 15:25:25 +02:00
parent bfe71900d3
commit e46844988e
4 changed files with 16 additions and 5 deletions

View File

@@ -46,6 +46,7 @@ class PageController extends Controller {
public function index() {
$params = [
'user' => $this->userId,
'maxUploadSize' => \OCP\Util::uploadLimit(),
];
return new TemplateResponse('deck', 'main', $params);
}