|
525
|
1 |
<!DOCTYPE html> |
|
|
2 |
<html lang="en"> |
|
|
3 |
<head> |
|
|
4 |
<meta charset="utf-8"> |
|
|
5 |
<title>Example: Multiple Files Uploader with POST Variables and Server Data Retrieval</title> |
|
|
6 |
<link rel="stylesheet" href="http://fonts.googleapis.com/css?family=PT+Sans:400,700,400italic,700italic"> |
|
|
7 |
<link rel="stylesheet" href="../../build/cssgrids/cssgrids-min.css"> |
|
|
8 |
<link rel="stylesheet" href="../assets/css/main.css"> |
|
|
9 |
<link rel="stylesheet" href="../assets/vendor/prettify/prettify-min.css"> |
|
|
10 |
<link rel="shortcut icon" type="image/png" href="../assets/favicon.png"> |
|
|
11 |
<script src="../../build/yui/yui-min.js"></script> |
|
|
12 |
|
|
|
13 |
</head> |
|
|
14 |
<body> |
|
|
15 |
<!-- |
|
|
16 |
<a href="https://github.com/yui/yui3"><img style="position: absolute; top: 0; right: 0; border: 0;" src="https://s3.amazonaws.com/github/ribbons/forkme_right_darkblue_121621.png" alt="Fork me on GitHub"></a> |
|
|
17 |
--> |
|
|
18 |
<div id="doc"> |
|
|
19 |
<div id="hd"> |
|
|
20 |
<h1><img src="http://yuilibrary.com/img/yui-logo.png"></h1> |
|
|
21 |
</div> |
|
|
22 |
|
|
|
23 |
|
|
|
24 |
<h1>Example: Multiple Files Uploader with POST Variables and Server Data Retrieval</h1> |
|
|
25 |
<div class="yui3-g"> |
|
|
26 |
<div class="yui3-u-3-4"> |
|
|
27 |
<div id="main"> |
|
|
28 |
<div class="content"><div class="intro"> |
|
|
29 |
<p>In this example, the Uploader is used to send multiple images or videos to the server and monitor |
|
|
30 |
their upload progress with individual counters. If the Uploader is used in a browser with HTML5 |
|
|
31 |
support, it is progressively enhanced to enable dragging-and-dropping files into the browser window. |
|
|
32 |
Along with each file, this example also submits an additional POST variable (the file's name). |
|
|
33 |
Once each upload completes, the server sends the received file name POST variable back, along with a time |
|
|
34 |
stamp, and the example displays them next to the file.</p> |
|
|
35 |
|
|
|
36 |
<p><strong>Please note:</strong> This example will not work when run from a local filesystem because of security restrictions in the transport protocols used. If you’d like to run this example locally, set up a local web server and launch it from there.</p> |
|
|
37 |
|
|
|
38 |
<p><strong>Also note:</strong> The uploader is not supported on iOS devices (iPhone and iPad), because they lack file upload capability. This example provides a graceful degradation message for all such systems.</p> |
|
|
39 |
|
|
|
40 |
<p><strong>Also note:</strong> The backend script used in these examples does not store any information it receives. Nevertheless, do not submit any sensitive or private data and keep |
|
|
41 |
your tests to a few small files to avoid overloading the system.</p> |
|
|
42 |
</div> |
|
|
43 |
|
|
|
44 |
<div class="example yui3-skin-sam"> |
|
|
45 |
<style> |
|
|
46 |
#filelist { |
|
|
47 |
margin-top: 15px; |
|
|
48 |
} |
|
|
49 |
|
|
|
50 |
#uploadFilesButtonContainer, #selectFilesButtonContainer, #overallProgress { |
|
|
51 |
display: inline-block; |
|
|
52 |
} |
|
|
53 |
|
|
|
54 |
#overallProgress { |
|
|
55 |
float: right; |
|
|
56 |
} |
|
|
57 |
|
|
|
58 |
.yellowBackground { |
|
|
59 |
background: #F2E699; |
|
|
60 |
} |
|
|
61 |
|
|
|
62 |
.serverdata { |
|
|
63 |
font-size: 0.8em; |
|
|
64 |
} |
|
|
65 |
</style> |
|
|
66 |
|
|
|
67 |
<div id="exampleContainer"> |
|
|
68 |
<div id="uploaderContainer"> |
|
|
69 |
<div id="selectFilesButtonContainer"> |
|
|
70 |
</div> |
|
|
71 |
<div id="uploadFilesButtonContainer"> |
|
|
72 |
<button type="button" id="uploadFilesButton" |
|
|
73 |
class="yui3-button" style="width:250px; height:35px;">Upload Files</button> |
|
|
74 |
</div> |
|
|
75 |
<div id="overallProgress"> |
|
|
76 |
</div> |
|
|
77 |
</div> |
|
|
78 |
|
|
|
79 |
<div id="filelist"> |
|
|
80 |
<table id="filenames"> |
|
|
81 |
<thead> |
|
|
82 |
<tr><th>File name</th><th>File size</th><th>Percent uploaded</th><th>Data from Server</th></tr> |
|
|
83 |
<tr id="nofiles"> |
|
|
84 |
<td colspan="4" id="ddmessage"> |
|
|
85 |
<strong>No files selected.</strong> |
|
|
86 |
</td> |
|
|
87 |
</tr> |
|
|
88 |
</thead> |
|
|
89 |
<tbody> |
|
|
90 |
</tbody> |
|
|
91 |
</table> |
|
|
92 |
</div> |
|
|
93 |
</div> |
|
|
94 |
|
|
|
95 |
<script> |
|
|
96 |
|
|
|
97 |
YUI({filter:"raw"}).use("uploader", function(Y) { |
|
|
98 |
Y.one("#overallProgress").set("text", "Uploader type: " + Y.Uploader.TYPE); |
|
|
99 |
if (Y.Uploader.TYPE != "none" && !Y.UA.ios) { |
|
|
100 |
var uploader = new Y.Uploader({width: "250px", |
|
|
101 |
height: "35px", |
|
|
102 |
multipleFiles: true, |
|
|
103 |
swfURL: "../../build/uploader/assets/flashuploader.swf?t=" + Math.random(), |
|
|
104 |
uploadURL: "http://yuilibrary.com/sandbox/upload/", |
|
|
105 |
simLimit: 2, |
|
|
106 |
withCredentials: false |
|
|
107 |
}); |
|
|
108 |
var uploadDone = false; |
|
|
109 |
|
|
|
110 |
if (Y.Uploader.TYPE == "html5") { |
|
|
111 |
uploader.set("dragAndDropArea", "body"); |
|
|
112 |
|
|
|
113 |
Y.one("#ddmessage").setHTML("<strong>Drag and drop files here.</strong>"); |
|
|
114 |
|
|
|
115 |
uploader.on(["dragenter", "dragover"], function (event) { |
|
|
116 |
var ddmessage = Y.one("#ddmessage"); |
|
|
117 |
if (ddmessage) { |
|
|
118 |
ddmessage.setHTML("<strong>Files detected, drop them here!</strong>"); |
|
|
119 |
ddmessage.addClass("yellowBackground"); |
|
|
120 |
} |
|
|
121 |
}); |
|
|
122 |
|
|
|
123 |
uploader.on(["dragleave", "drop"], function (event) { |
|
|
124 |
var ddmessage = Y.one("#ddmessage"); |
|
|
125 |
if (ddmessage) { |
|
|
126 |
ddmessage.setHTML("<strong>Drag and drop files here.</strong>"); |
|
|
127 |
ddmessage.removeClass("yellowBackground"); |
|
|
128 |
} |
|
|
129 |
}); |
|
|
130 |
} |
|
|
131 |
|
|
|
132 |
uploader.render("#selectFilesButtonContainer"); |
|
|
133 |
|
|
|
134 |
uploader.after("fileselect", function (event) { |
|
|
135 |
|
|
|
136 |
var fileList = event.fileList; |
|
|
137 |
var fileTable = Y.one("#filenames tbody"); |
|
|
138 |
if (fileList.length > 0 && Y.one("#nofiles")) { |
|
|
139 |
Y.one("#nofiles").remove(); |
|
|
140 |
} |
|
|
141 |
|
|
|
142 |
if (uploadDone) { |
|
|
143 |
uploadDone = false; |
|
|
144 |
fileTable.setHTML(""); |
|
|
145 |
} |
|
|
146 |
|
|
|
147 |
var perFileVars = {}; |
|
|
148 |
|
|
|
149 |
Y.each(fileList, function (fileInstance) { |
|
|
150 |
fileTable.append("<tr id='" + fileInstance.get("id") + "_row" + "'>" + |
|
|
151 |
"<td class='filename'>" + fileInstance.get("name") + "</td>" + |
|
|
152 |
"<td class='filesize'>" + fileInstance.get("size") + "</td>" + |
|
|
153 |
"<td class='percentdone'>Hasn't started yet</td>" + |
|
|
154 |
"<td class='serverdata'> </td>"); |
|
|
155 |
|
|
|
156 |
perFileVars[fileInstance.get("id")] = {filename: fileInstance.get("name")}; |
|
|
157 |
}); |
|
|
158 |
|
|
|
159 |
uploader.set("postVarsPerFile", Y.merge(uploader.get("postVarsPerFile"), perFileVars)); |
|
|
160 |
}); |
|
|
161 |
|
|
|
162 |
uploader.on("uploadprogress", function (event) { |
|
|
163 |
var fileRow = Y.one("#" + event.file.get("id") + "_row"); |
|
|
164 |
fileRow.one(".percentdone").set("text", event.percentLoaded + "%"); |
|
|
165 |
}); |
|
|
166 |
|
|
|
167 |
uploader.on("uploadstart", function (event) { |
|
|
168 |
uploader.set("enabled", false); |
|
|
169 |
Y.one("#uploadFilesButton").addClass("yui3-button-disabled"); |
|
|
170 |
Y.one("#uploadFilesButton").detach("click"); |
|
|
171 |
}); |
|
|
172 |
|
|
|
173 |
uploader.on("uploadcomplete", function (event) { |
|
|
174 |
var fileRow = Y.one("#" + event.file.get("id") + "_row"); |
|
|
175 |
fileRow.one(".percentdone").set("text", "Finished!"); |
|
|
176 |
fileRow.one(".serverdata").setHTML(event.data); |
|
|
177 |
}); |
|
|
178 |
|
|
|
179 |
uploader.on("totaluploadprogress", function (event) { |
|
|
180 |
Y.one("#overallProgress").setHTML("Total uploaded: <strong>" + event.percentLoaded + "%" + "</strong>"); |
|
|
181 |
}); |
|
|
182 |
|
|
|
183 |
uploader.on("alluploadscomplete", function (event) { |
|
|
184 |
uploader.set("enabled", true); |
|
|
185 |
uploader.set("fileList", []); |
|
|
186 |
Y.one("#uploadFilesButton").removeClass("yui3-button-disabled"); |
|
|
187 |
Y.one("#uploadFilesButton").on("click", function () { |
|
|
188 |
if (!uploadDone && uploader.get("fileList").length > 0) { |
|
|
189 |
uploader.uploadAll(); |
|
|
190 |
} |
|
|
191 |
}); |
|
|
192 |
Y.one("#overallProgress").set("text", "Uploads complete!"); |
|
|
193 |
uploadDone = true; |
|
|
194 |
}); |
|
|
195 |
|
|
|
196 |
Y.one("#uploadFilesButton").on("click", function () { |
|
|
197 |
if (!uploadDone && uploader.get("fileList").length > 0) { |
|
|
198 |
uploader.uploadAll(); |
|
|
199 |
} |
|
|
200 |
}); |
|
|
201 |
} |
|
|
202 |
else { |
|
|
203 |
Y.one("#uploaderContainer").set("text", "We are sorry, but to use the uploader, you either need a browser that support HTML5 or have the Flash player installed on your computer."); |
|
|
204 |
} |
|
|
205 |
|
|
|
206 |
|
|
|
207 |
}); |
|
|
208 |
|
|
|
209 |
</script> |
|
|
210 |
|
|
|
211 |
</div> |
|
|
212 |
|
|
|
213 |
<h2>Sending and Retrieving Data from the Server</h2> |
|
|
214 |
<p>This example is based on the <a href="uploader-dd.html">Uploader with HTML5 Drag-and-Drop Support</a>, but adds custom POST variables along with each file upload, |
|
|
215 |
and retrieves and displays data received from the server in response to each file upload.</p> |
|
|
216 |
|
|
|
217 |
<p>To send additional POST variables along with files, we populate the <code>postVarsPerFile</code> attribute when files are selected: |
|
|
218 |
|
|
|
219 |
<pre class="code prettyprint">uploader.after("fileselect", function (event) { |
|
|
220 |
|
|
|
221 |
... |
|
|
222 |
|
|
|
223 |
var perFileVars = {}; |
|
|
224 |
|
|
|
225 |
Y.each(fileList, function (fileInstance) { |
|
|
226 |
fileTable.append("<tr id='" + fileInstance.get("id") + "_row" + "'>" + |
|
|
227 |
"<td class='filename'>" + fileInstance.get("name") + "</td>" + |
|
|
228 |
"<td class='filesize'>" + fileInstance.get("size") + "</td>" + |
|
|
229 |
"<td class='percentdone'>Hasn't started yet</td>" + |
|
|
230 |
"<td class='serverdata'>&nbsp;</td>"); |
|
|
231 |
|
|
|
232 |
perFileVars[fileInstance.get("id")] = {filename: fileInstance.get("name")}; |
|
|
233 |
}); |
|
|
234 |
|
|
|
235 |
uploader.set("postVarsPerFile", Y.merge(uploader.get("postVarsPerFile"), perFileVars)); |
|
|
236 |
});</pre> |
|
|
237 |
|
|
|
238 |
|
|
|
239 |
<p>When uploads complete, we can retrieve and display the data received from the server (in this case, the <code>filename</code> POST variable that we transmitted, |
|
|
240 |
along with the server timestamp): |
|
|
241 |
|
|
|
242 |
<pre class="code prettyprint">uploader.on("uploadcomplete", function (event) { |
|
|
243 |
|
|
|
244 |
... |
|
|
245 |
|
|
|
246 |
fileRow.one(".serverdata").setHTML(event.data); |
|
|
247 |
});</pre> |
|
|
248 |
|
|
|
249 |
|
|
|
250 |
<h2>Full Source Code For this Example</h2> |
|
|
251 |
|
|
|
252 |
<pre class="code prettyprint"><style> |
|
|
253 |
#filelist { |
|
|
254 |
margin-top: 15px; |
|
|
255 |
} |
|
|
256 |
|
|
|
257 |
#uploadFilesButtonContainer, #selectFilesButtonContainer, #overallProgress { |
|
|
258 |
display: inline-block; |
|
|
259 |
} |
|
|
260 |
|
|
|
261 |
#overallProgress { |
|
|
262 |
float: right; |
|
|
263 |
} |
|
|
264 |
|
|
|
265 |
.yellowBackground { |
|
|
266 |
background: #F2E699; |
|
|
267 |
} |
|
|
268 |
|
|
|
269 |
.serverdata { |
|
|
270 |
font-size: 0.8em; |
|
|
271 |
} |
|
|
272 |
</style> |
|
|
273 |
|
|
|
274 |
<div id="exampleContainer"> |
|
|
275 |
<div id="uploaderContainer"> |
|
|
276 |
<div id="selectFilesButtonContainer"> |
|
|
277 |
</div> |
|
|
278 |
<div id="uploadFilesButtonContainer"> |
|
|
279 |
<button type="button" id="uploadFilesButton" |
|
|
280 |
class="yui3-button" style="width:250px; height:35px;">Upload Files</button> |
|
|
281 |
</div> |
|
|
282 |
<div id="overallProgress"> |
|
|
283 |
</div> |
|
|
284 |
</div> |
|
|
285 |
|
|
|
286 |
<div id="filelist"> |
|
|
287 |
<table id="filenames"> |
|
|
288 |
<thead> |
|
|
289 |
<tr><th>File name</th><th>File size</th><th>Percent uploaded</th><th>Data from Server</th></tr> |
|
|
290 |
<tr id="nofiles"> |
|
|
291 |
<td colspan="4" id="ddmessage"> |
|
|
292 |
<strong>No files selected.</strong> |
|
|
293 |
</td> |
|
|
294 |
</tr> |
|
|
295 |
</thead> |
|
|
296 |
<tbody> |
|
|
297 |
</tbody> |
|
|
298 |
</table> |
|
|
299 |
</div> |
|
|
300 |
</div> |
|
|
301 |
|
|
|
302 |
<script> |
|
|
303 |
|
|
|
304 |
YUI({filter:"raw"}).use("uploader", function(Y) { |
|
|
305 |
Y.one("#overallProgress").set("text", "Uploader type: " + Y.Uploader.TYPE); |
|
|
306 |
if (Y.Uploader.TYPE != "none" && !Y.UA.ios) { |
|
|
307 |
var uploader = new Y.Uploader({width: "250px", |
|
|
308 |
height: "35px", |
|
|
309 |
multipleFiles: true, |
|
|
310 |
swfURL: "../../build/uploader/assets/flashuploader.swf?t=" + Math.random(), |
|
|
311 |
uploadURL: "http://yuilibrary.com/sandbox/upload/", |
|
|
312 |
simLimit: 2, |
|
|
313 |
withCredentials: false |
|
|
314 |
}); |
|
|
315 |
var uploadDone = false; |
|
|
316 |
|
|
|
317 |
if (Y.Uploader.TYPE == "html5") { |
|
|
318 |
uploader.set("dragAndDropArea", "body"); |
|
|
319 |
|
|
|
320 |
Y.one("#ddmessage").setHTML("<strong>Drag and drop files here.</strong>"); |
|
|
321 |
|
|
|
322 |
uploader.on(["dragenter", "dragover"], function (event) { |
|
|
323 |
var ddmessage = Y.one("#ddmessage"); |
|
|
324 |
if (ddmessage) { |
|
|
325 |
ddmessage.setHTML("<strong>Files detected, drop them here!</strong>"); |
|
|
326 |
ddmessage.addClass("yellowBackground"); |
|
|
327 |
} |
|
|
328 |
}); |
|
|
329 |
|
|
|
330 |
uploader.on(["dragleave", "drop"], function (event) { |
|
|
331 |
var ddmessage = Y.one("#ddmessage"); |
|
|
332 |
if (ddmessage) { |
|
|
333 |
ddmessage.setHTML("<strong>Drag and drop files here.</strong>"); |
|
|
334 |
ddmessage.removeClass("yellowBackground"); |
|
|
335 |
} |
|
|
336 |
}); |
|
|
337 |
} |
|
|
338 |
|
|
|
339 |
uploader.render("#selectFilesButtonContainer"); |
|
|
340 |
|
|
|
341 |
uploader.after("fileselect", function (event) { |
|
|
342 |
|
|
|
343 |
var fileList = event.fileList; |
|
|
344 |
var fileTable = Y.one("#filenames tbody"); |
|
|
345 |
if (fileList.length > 0 && Y.one("#nofiles")) { |
|
|
346 |
Y.one("#nofiles").remove(); |
|
|
347 |
} |
|
|
348 |
|
|
|
349 |
if (uploadDone) { |
|
|
350 |
uploadDone = false; |
|
|
351 |
fileTable.setHTML(""); |
|
|
352 |
} |
|
|
353 |
|
|
|
354 |
var perFileVars = {}; |
|
|
355 |
|
|
|
356 |
Y.each(fileList, function (fileInstance) { |
|
|
357 |
fileTable.append("<tr id='" + fileInstance.get("id") + "_row" + "'>" + |
|
|
358 |
"<td class='filename'>" + fileInstance.get("name") + "</td>" + |
|
|
359 |
"<td class='filesize'>" + fileInstance.get("size") + "</td>" + |
|
|
360 |
"<td class='percentdone'>Hasn't started yet</td>" + |
|
|
361 |
"<td class='serverdata'>&nbsp;</td>"); |
|
|
362 |
|
|
|
363 |
perFileVars[fileInstance.get("id")] = {filename: fileInstance.get("name")}; |
|
|
364 |
}); |
|
|
365 |
|
|
|
366 |
uploader.set("postVarsPerFile", Y.merge(uploader.get("postVarsPerFile"), perFileVars)); |
|
|
367 |
}); |
|
|
368 |
|
|
|
369 |
uploader.on("uploadprogress", function (event) { |
|
|
370 |
var fileRow = Y.one("#" + event.file.get("id") + "_row"); |
|
|
371 |
fileRow.one(".percentdone").set("text", event.percentLoaded + "%"); |
|
|
372 |
}); |
|
|
373 |
|
|
|
374 |
uploader.on("uploadstart", function (event) { |
|
|
375 |
uploader.set("enabled", false); |
|
|
376 |
Y.one("#uploadFilesButton").addClass("yui3-button-disabled"); |
|
|
377 |
Y.one("#uploadFilesButton").detach("click"); |
|
|
378 |
}); |
|
|
379 |
|
|
|
380 |
uploader.on("uploadcomplete", function (event) { |
|
|
381 |
var fileRow = Y.one("#" + event.file.get("id") + "_row"); |
|
|
382 |
fileRow.one(".percentdone").set("text", "Finished!"); |
|
|
383 |
fileRow.one(".serverdata").setHTML(event.data); |
|
|
384 |
}); |
|
|
385 |
|
|
|
386 |
uploader.on("totaluploadprogress", function (event) { |
|
|
387 |
Y.one("#overallProgress").setHTML("Total uploaded: <strong>" + event.percentLoaded + "%" + "</strong>"); |
|
|
388 |
}); |
|
|
389 |
|
|
|
390 |
uploader.on("alluploadscomplete", function (event) { |
|
|
391 |
uploader.set("enabled", true); |
|
|
392 |
uploader.set("fileList", []); |
|
|
393 |
Y.one("#uploadFilesButton").removeClass("yui3-button-disabled"); |
|
|
394 |
Y.one("#uploadFilesButton").on("click", function () { |
|
|
395 |
if (!uploadDone && uploader.get("fileList").length > 0) { |
|
|
396 |
uploader.uploadAll(); |
|
|
397 |
} |
|
|
398 |
}); |
|
|
399 |
Y.one("#overallProgress").set("text", "Uploads complete!"); |
|
|
400 |
uploadDone = true; |
|
|
401 |
}); |
|
|
402 |
|
|
|
403 |
Y.one("#uploadFilesButton").on("click", function () { |
|
|
404 |
if (!uploadDone && uploader.get("fileList").length > 0) { |
|
|
405 |
uploader.uploadAll(); |
|
|
406 |
} |
|
|
407 |
}); |
|
|
408 |
} |
|
|
409 |
else { |
|
|
410 |
Y.one("#uploaderContainer").set("text", "We are sorry, but to use the uploader, you either need a browser that support HTML5 or have the Flash player installed on your computer."); |
|
|
411 |
} |
|
|
412 |
|
|
|
413 |
|
|
|
414 |
}); |
|
|
415 |
|
|
|
416 |
</script></pre> |
|
|
417 |
|
|
|
418 |
|
|
|
419 |
</div> |
|
|
420 |
</div> |
|
|
421 |
</div> |
|
|
422 |
|
|
|
423 |
<div class="yui3-u-1-4"> |
|
|
424 |
<div class="sidebar"> |
|
|
425 |
|
|
|
426 |
|
|
|
427 |
|
|
|
428 |
<div class="sidebox"> |
|
|
429 |
<div class="hd"> |
|
|
430 |
<h2 class="no-toc">Examples</h2> |
|
|
431 |
</div> |
|
|
432 |
|
|
|
433 |
<div class="bd"> |
|
|
434 |
<ul class="examples"> |
|
|
435 |
|
|
|
436 |
|
|
|
437 |
<li data-description="A simple multiple file uploader with progress tracking"> |
|
|
438 |
<a href="uploader-multiple.html">Simple Multiple Files Uploader with Progress Tracking</a> |
|
|
439 |
</li> |
|
|
440 |
|
|
|
441 |
|
|
|
442 |
|
|
|
443 |
<li data-description="A multiple file uploader with HTML5 Drag-and-Drop Support"> |
|
|
444 |
<a href="uploader-dd.html">Multiple Files Uploader with HTML5 Drag-and-Drop Support</a> |
|
|
445 |
</li> |
|
|
446 |
|
|
|
447 |
|
|
|
448 |
|
|
|
449 |
<li data-description="A multiple file uploader that submits additional POST vars with each file and receives data from the server"> |
|
|
450 |
<a href="uploader-data.html">Multiple Files Uploader with POST Variables and Server Data Retrieval</a> |
|
|
451 |
</li> |
|
|
452 |
|
|
|
453 |
|
|
|
454 |
</ul> |
|
|
455 |
</div> |
|
|
456 |
</div> |
|
|
457 |
|
|
|
458 |
|
|
|
459 |
|
|
|
460 |
</div> |
|
|
461 |
</div> |
|
|
462 |
</div> |
|
|
463 |
</div> |
|
|
464 |
|
|
|
465 |
<script src="../assets/vendor/prettify/prettify-min.js"></script> |
|
|
466 |
<script>prettyPrint();</script> |
|
|
467 |
|
|
|
468 |
<script> |
|
|
469 |
YUI.Env.Tests = { |
|
|
470 |
examples: [], |
|
|
471 |
project: '../assets', |
|
|
472 |
assets: '../assets/uploader', |
|
|
473 |
name: 'uploader-data', |
|
|
474 |
title: 'Multiple Files Uploader with POST Variables and Server Data Retrieval', |
|
|
475 |
newWindow: '', |
|
|
476 |
auto: false |
|
|
477 |
}; |
|
|
478 |
YUI.Env.Tests.examples.push('uploader-multiple'); |
|
|
479 |
YUI.Env.Tests.examples.push('uploader-dd'); |
|
|
480 |
YUI.Env.Tests.examples.push('uploader-data'); |
|
|
481 |
|
|
|
482 |
</script> |
|
|
483 |
<script src="../assets/yui/test-runner.js"></script> |
|
|
484 |
|
|
|
485 |
|
|
|
486 |
|
|
|
487 |
</body> |
|
|
488 |
</html> |