server/apps/files/js/upload.js

9 lines
229 B
JavaScript
Raw Normal View History

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