2014-01-30 09:41:04 +00:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2014
|
|
|
|
*
|
|
|
|
* This file is licensed under the Affero General Public License version 3
|
|
|
|
* or later.
|
|
|
|
*
|
|
|
|
* See the COPYING-README file.
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
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');
|