2 YUI 3.13.0 (build 508226d)
3 Copyright 2013 Yahoo! Inc. All rights reserved.
4 Licensed under the BSD License.
5 http://yuilibrary.com/license/
8 YUI.add('uploader', function (Y, NAME) {
11 * Provides UI for selecting multiple files and functionality for
12 * uploading multiple files to the server with support for either
13 * html5 or Flash transport mechanisms, automatic queue management,
14 * upload progress monitoring, and error events.
21 * `Y.Uploader` serves as an alias for either <a href="UploaderFlash.html">`Y.UploaderFlash`</a>
22 * or <a href="UploaderHTML5.html">`Y.UploaderHTML5`</a>, depending on the feature set available
23 * in a specific browser. If neither HTML5 nor Flash transport layers are available, `Y.Uploader.TYPE`
24 * static property is set to `"none"`.
30 * The static property reflecting the type of uploader that `Y.Uploader`
31 * aliases. The possible values are:
33 * <li><strong>`"html5"`</strong>: Y.Uploader is an alias for <a href="UploaderHTML5.html">Y.UploaderHTML5</a></li>
34 * <li><strong>`"flash"`</strong>: Y.Uploader is an alias for <a href="UploaderFlash.html">Y.UploaderFlash</a></li>
35 * <li><strong>`"none"`</strong>: Neither Flash not HTML5 are available, and Y.Uploader does
36 * not reference an actual implementation.</li>
44 var Win = Y.config.win;
46 if (Win && Win.File && Win.FormData && Win.XMLHttpRequest) {
47 Y.Uploader = Y.UploaderHTML5;
50 else if (Y.SWFDetect.isFlashVersionAtLeast(10,0,45)) {
51 Y.Uploader = Y.UploaderFlash;
55 Y.namespace("Uploader");
56 Y.Uploader.TYPE = "none";
60 }, '3.13.0', {"requires": ["uploader-html5", "uploader-flash"]});