upload.js 229 B

123456789
  1. function Upload(fileSelector) {
  2. if ($.support.xhrFileUpload) {
  3. return new XHRUpload(fileSelector.target.files);
  4. } else {
  5. return new FormUpload(fileSelector);
  6. }
  7. }
  8. Upload.target = OC.filePath('files', 'ajax', 'upload.php');