1
0

upload.js 336 B

12345678910111213
  1. /**
  2. * SPDX-FileCopyrightText: 2013-2014 ownCloud, Inc.
  3. * SPDX-License-Identifier: AGPL-3.0-or-later
  4. */
  5. function Upload(fileSelector) {
  6. if ($.support.xhrFileUpload) {
  7. return new XHRUpload(fileSelector.target.files);
  8. } else {
  9. return new FormUpload(fileSelector);
  10. }
  11. }
  12. Upload.target = OC.filePath('files', 'ajax', 'upload.php');