diff options
author | Vincent Petry <pvince81@owncloud.com> | 2016-10-07 16:27:54 +0200 |
---|---|---|
committer | Daniel Calviño Sánchez <danxuliu@gmail.com> | 2017-11-03 17:19:23 +0100 |
commit | cd8d13b9e6e7bbf0e17f31c60021804ac4772939 (patch) | |
tree | ebdc418958ec2a8047a5cafa774c5c8a47ae21ec /apps/files/appinfo | |
parent | 8ee765a61743db31749b0bdb51ce09915458325f (diff) | |
download | nextcloud-server-cd8d13b9e6e7bbf0e17f31c60021804ac4772939.tar.gz nextcloud-server-cd8d13b9e6e7bbf0e17f31c60021804ac4772939.zip |
Enable chunking for bigger files in authenticated web upload
This commit adds chunked uploads in the Web UI (for authenticated users,
but not for public uploads). To do that the server endpoint used by the
uploader is changed from WebDAV v1 to WebDAV v2. The chunking itself is
done automatically by the jQuery-File-Upload plugin when the
"maxChunkSize" parameter is set; in "fileuploadchunksend" the request is
adjusted to adapt the behaviour of the plugin to the one expected by
"uploads/" in WebDAV v2.
The chunk size to be used by the Web UI can be set in the
"max_chunk_size" parameter of the Files app configuration. By default it
is set to 10MiB.
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
Diffstat (limited to 'apps/files/appinfo')
-rw-r--r-- | apps/files/appinfo/app.php | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/apps/files/appinfo/app.php b/apps/files/appinfo/app.php index 63acda3a706..cd81aa3af31 100644 --- a/apps/files/appinfo/app.php +++ b/apps/files/appinfo/app.php @@ -57,3 +57,5 @@ $templateManager->registerTemplate('application/vnd.oasis.opendocument.spreadshe 'name' => $l->t('Recent'), ]; }); + +\OCP\Util::connectHook('\OCP\Config', 'js', '\OCA\Files\App', 'extendJsConfig'); |