Welcome to mirror list, hosted at ThFree Co, Russian Federation.

upload.js « js « files « apps - github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 518608615e06d00808a146864718076fbf55ae71 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/*
 * Copyright (c) 2014
 *
 * This file is licensed under the Affero General Public License version 3
 * or later.
 *
 * See the COPYING-README file.
 *
 */

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');