diff options
author | Jan-Christoph Borchardt <hey@jancborchardt.net> | 2013-01-31 19:28:25 +0100 |
---|---|---|
committer | Jan-Christoph Borchardt <hey@jancborchardt.net> | 2013-01-31 19:28:25 +0100 |
commit | 3d5c7ca2456849b7227cf24bed2bc0be4db1a555 (patch) | |
tree | 95ca38a92c8d84d49063e3f852467feae770be96 /apps/files/js | |
parent | ad044eb88861ebf2cefedc993634a85bb4697cd2 (diff) | |
parent | 5bf7791b4212c6dba2ce7289841c71f8177cfa3f (diff) | |
download | nextcloud-server-3d5c7ca2456849b7227cf24bed2bc0be4db1a555.tar.gz nextcloud-server-3d5c7ca2456849b7227cf24bed2bc0be4db1a555.zip |
Merge branch 'master' into navigation
Diffstat (limited to 'apps/files/js')
-rw-r--r-- | apps/files/js/upload.js | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/apps/files/js/upload.js b/apps/files/js/upload.js new file mode 100644 index 00000000000..9d9f61f600e --- /dev/null +++ b/apps/files/js/upload.js @@ -0,0 +1,8 @@ +function Upload(fileSelector) { + if ($.support.xhrFileUpload) { + return new XHRUpload(fileSelector.target.files); + } else { + return new FormUpload(fileSelector); + } +} +Upload.target = OC.filePath('files', 'ajax', 'upload.php'); |