8 lines
229 B
JavaScript
8 lines
229 B
JavaScript
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');
|