nextcloud/apps/files/js/upload.js

9 lines
229 B
JavaScript
Raw Normal View History

2013-01-31 20:56:44 +04:00
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');