]> source.dussan.org Git - nextcloud-server.git/commit
Use Webdav PUT for uploads in the web browser
authorVincent Petry <pvince81@owncloud.com>
Wed, 16 Dec 2015 16:35:53 +0000 (17:35 +0100)
committerRoeland Jago Douma <roeland@famdouma.nl>
Mon, 24 Oct 2016 19:45:00 +0000 (21:45 +0200)
commit59c5be1cc572793a8d50e87ab589e1cc4cf2ed12
tree97b096fee075115bac45d69f2e0da7af5ffb41f2
parent4d01f23978549c2a33e9fdfdc3b9308cc9dc1078
Use Webdav PUT for uploads in the web browser

- uses PUT method with jquery.fileupload for regular and public file
  lists
- for IE and browsers that don't support it, use POST with iframe
  transport
- implemented Sabre plugin to handle iframe transport and redirect the
  embedded PUT request to the proper handler
- added RFC5995 POST to file collection with "add-member" property to
  make it possible to auto-rename conflicting file names
- remove obsolete ajax/upload.php and obsolete ajax routes

Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
16 files changed:
apps/dav/lib/Connector/Sabre/FilesPlugin.php
apps/dav/lib/Connector/Sabre/IFrameTransportPlugin.php [new file with mode: 0644]
apps/dav/lib/Connector/Sabre/ServerFactory.php
apps/dav/tests/unit/Connector/Sabre/FilesPluginTest.php
apps/dav/tests/unit/Connector/Sabre/IFrameTransportPluginTest.php [new file with mode: 0644]
apps/files/ajax/upload.php [deleted file]
apps/files/appinfo/routes.php
apps/files/js/app.js
apps/files/js/file-upload.js
apps/files/js/filelist.js
apps/files/js/files.js
apps/files/templates/list.php
apps/files/tests/js/fileUploadSpec.js
apps/files/tests/js/filelistSpec.js
apps/files_sharing/js/public.js
apps/files_sharing/tests/js/publicAppSpec.js