1
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
4
<META http-equiv="Content-Type" content="text/html; charset=UTF-8">
5
<link rel="stylesheet" href="style.css" type="text/css" media="screen">
6
<link rel="stylesheet" href="print.css" type="text/css" media="print">
7
<meta content="Uploader,simultaneousUploadLimit,cancel,clearFileList,disable,enable,removeFile,setAllowLogging,setAllowMultipleFiles,setFileFilters,setSimUploadLimit,upload,uploadAll" name="keywords">
8
<title>Uploader</title>
11
<script type="text/javascript" language="javascript" src="asdoc.js"></script><script type="text/javascript" language="javascript" src="cookies.js"></script><script type="text/javascript" language="javascript">
13
asdocTitle = 'Uploader - YUI Flash Component Documentation';
15
window.onload = configPage;
17
<table style="display:none" id="titleTable" cellspacing="0" cellpadding="0" class="titleTable">
19
<td align="left" class="titleTableTitle">YUI Flash Component Documentation</td><td align="right" class="titleTableTopNav"><a onclick="loadClassListFrame('all-classes.html')" href="package-summary.html">All Packages</a> | <a onclick="loadClassListFrame('all-classes.html')" href="class-summary.html">All Classes</a> | <a onclick="loadClassListFrame('index-list.html')" href="all-index-A.html">Index</a> | <a href="index.html?Uploader.html&class-list.html" id="framesLink1">Frames</a><a onclick="parent.location=document.location" href="" style="display:none" id="noFramesLink1">No Frames</a></td><td rowspan="3" align="right" class="titleTableLogo"><img alt="Adobe Logo" title="Adobe Logo" class="logoImage" src="images/logo.jpg"></td>
21
<tr class="titleTableRow2">
22
<td align="left" id="subTitle" class="titleTableSubTitle">Class Uploader</td><td align="right" id="subNav" class="titleTableSubNav"><a href="#propertySummary">Properties</a> | <a href="#methodSummary">Methods</a></td>
24
<tr class="titleTableRow3">
25
<td colspan="2"> </td>
28
<script type="text/javascript" language="javascript">
30
if (!isEclipse() || window.name != ECLIPSE_FRAME_NAME) {titleBar_setSubTitle("Class Uploader"); titleBar_setSubNav(false,true,false,false,false,false,true,false,false,false,false,false,false,false);}
32
<div class="MainContent">
33
<table cellspacing="0" cellpadding="0" class="classHeaderTable">
35
<td class="classHeaderTableLabel">Package</td><td><a onclick="javascript:loadClassListFrame('class-list.html')" href="package-detail.html">Top Level</a></td>
38
<td class="classHeaderTableLabel">Class</td><td class="classSignature">public class Uploader</td>
41
<td class="classHeaderTableLabel">Inheritance</td><td class="inheritanceList">Uploader <img class="inheritArrow" alt="Inheritance" title="Inheritance" src="images/inherit-arrow.gif"> <a href="../com/yahoo/yui/YUIAdapter.html">YUIAdapter</a> <img class="inheritArrow" alt="Inheritance" title="Inheritance" src="images/inherit-arrow.gif"> flash.display.Sprite</td>
45
The base Uploader class for YUI's Flash-based file uploader.
51
<a name="propertySummary"></a>
52
<div class="summarySection">
53
<div class="summaryTableTitle">Public Properties</div>
54
<table id="summaryTableProperty" class="summaryTable " cellpadding="3" cellspacing="0">
56
<th> </th><th colspan="2">Property</th><th class="summaryTableOwnerCol">Defined by</th>
59
<td class="summaryTablePaddingCol"> </td><td class="summaryTableInheritanceCol"> </td><td class="summaryTableSignatureCol"><a class="signatureLink" href="#simultaneousUploadLimit">simultaneousUploadLimit</a> : Number = 2<div class="summaryTableDescription">
60
Determines how many files will be uploaded simultaneously
62
</td><td class="summaryTableOwnerCol">Uploader</td>
66
<a name="protectedPropertySummary"></a>
67
<div class="summarySection">
68
<div class="summaryTableTitle">Protected Properties</div>
69
<div class="showHideLinks">
70
<div class="hideInheritedProtectedProperty" id="hideInheritedProtectedProperty">
71
<a onclick="javascript:setInheritedVisible(false,'ProtectedProperty');" href="#protectedPropertySummary" class="showHideLink"><img src="images/expanded.gif" class="showHideLinkImage"> Hide Inherited Protected Properties</a>
73
<div class="showInheritedProtectedProperty" id="showInheritedProtectedProperty">
74
<a onclick="javascript:setInheritedVisible(true,'ProtectedProperty');" href="#protectedPropertySummary" class="showHideLink"><img src="images/collapsed.gif" class="showHideLinkImage"> Show Inherited Protected Properties</a>
77
<table id="summaryTableProtectedProperty" class="summaryTable hideInheritedProtectedProperty" cellpadding="3" cellspacing="0">
79
<th> </th><th colspan="2">Property</th><th class="summaryTableOwnerCol">Defined by</th>
81
<tr class="hideInheritedProtectedProperty">
82
<td class="summaryTablePaddingCol"> </td><td class="summaryTableInheritanceCol"><img class="inheritedSummaryImage" title="Inherited" alt="Inherited" src="images/inheritedSummary.gif"></td><td class="summaryTableSignatureCol"><a class="signatureLink" href="../com/yahoo/yui/YUIAdapter.html#elementID">elementID</a> : String<div class="summaryTableDescription">
83
The element id that references the SWF in the HTML.</div>
84
</td><td class="summaryTableOwnerCol"><a href="../com/yahoo/yui/YUIAdapter.html">YUIAdapter</a></td>
86
<tr class="hideInheritedProtectedProperty">
87
<td class="summaryTablePaddingCol"> </td><td class="summaryTableInheritanceCol"><img class="inheritedSummaryImage" title="Inherited" alt="Inherited" src="images/inheritedSummary.gif"></td><td class="summaryTableSignatureCol"><a class="signatureLink" href="../com/yahoo/yui/YUIAdapter.html#javaScriptEventHandler">javaScriptEventHandler</a> : String<div class="summaryTableDescription">
88
The globally accessible JavaScript function that accepts events through ExternalInterface.</div>
89
</td><td class="summaryTableOwnerCol"><a href="../com/yahoo/yui/YUIAdapter.html">YUIAdapter</a></td>
93
<a name="methodSummary"></a>
94
<div class="summarySection">
95
<div class="summaryTableTitle">Public Methods</div>
96
<div class="showHideLinks">
97
<div class="hideInheritedMethod" id="hideInheritedMethod">
98
<a onclick="javascript:setInheritedVisible(false,'Method');" href="#methodSummary" class="showHideLink"><img src="images/expanded.gif" class="showHideLinkImage"> Hide Inherited Public Methods</a>
100
<div class="showInheritedMethod" id="showInheritedMethod">
101
<a onclick="javascript:setInheritedVisible(true,'Method');" href="#methodSummary" class="showHideLink"><img src="images/collapsed.gif" class="showHideLinkImage"> Show Inherited Public Methods</a>
104
<table id="summaryTableMethod" class="summaryTable " cellpadding="3" cellspacing="0">
106
<th> </th><th colspan="2">Method</th><th class="summaryTableOwnerCol">Defined by</th>
109
<td class="summaryTablePaddingCol"> </td><td class="summaryTableInheritanceCol"> </td><td class="summaryTableSignatureCol">
110
<div class="summarySignature">
111
<a class="signatureLink" href="#Uploader()">Uploader</a>()</div>
112
<div class="summaryTableDescription"></div>
113
</td><td class="summaryTableOwnerCol">Uploader</td>
116
<td class="summaryTablePaddingCol"> </td><td class="summaryTableInheritanceCol"> </td><td class="summaryTableSignatureCol">
117
<div class="summarySignature">
118
<a class="signatureLink" href="#cancel()">cancel</a>(fileID:String = null):void</div>
119
<div class="summaryTableDescription">
120
Cancels either an upload of the file corresponding to a given fileID, or in the absence of the specified fileID, all active files being uploaded.</div>
121
</td><td class="summaryTableOwnerCol">Uploader</td>
124
<td class="summaryTablePaddingCol"> </td><td class="summaryTableInheritanceCol"> </td><td class="summaryTableSignatureCol">
125
<div class="summarySignature">
126
<a class="signatureLink" href="#clearFileList()">clearFileList</a>():Boolean</div>
127
<div class="summaryTableDescription">
128
Clears the set of files that had been selected for upload
130
</td><td class="summaryTableOwnerCol">Uploader</td>
133
<td class="summaryTablePaddingCol"> </td><td class="summaryTableInheritanceCol"> </td><td class="summaryTableSignatureCol">
134
<div class="summarySignature">
135
<a class="signatureLink" href="#disable()">disable</a>():void</div>
136
<div class="summaryTableDescription"></div>
137
</td><td class="summaryTableOwnerCol">Uploader</td>
140
<td class="summaryTablePaddingCol"> </td><td class="summaryTableInheritanceCol"> </td><td class="summaryTableSignatureCol">
141
<div class="summarySignature">
142
<a class="signatureLink" href="#enable()">enable</a>():void</div>
143
<div class="summaryTableDescription"></div>
144
</td><td class="summaryTableOwnerCol">Uploader</td>
146
<tr class="hideInheritedMethod">
147
<td class="summaryTablePaddingCol"> </td><td class="summaryTableInheritanceCol"><img class="inheritedSummaryImage" title="Inherited" alt="Inherited" src="images/inheritedSummary.gif"></td><td class="summaryTableSignatureCol">
148
<div class="summarySignature">
149
<a class="signatureLink" href="../com/yahoo/yui/YUIAdapter.html#getAltText()">getAltText</a>():String</div>
150
<div class="summaryTableDescription">
151
Gets the alternative text for assistive technology.</div>
152
</td><td class="summaryTableOwnerCol"><a href="../com/yahoo/yui/YUIAdapter.html">YUIAdapter</a></td>
155
<td class="summaryTablePaddingCol"> </td><td class="summaryTableInheritanceCol"> </td><td class="summaryTableSignatureCol">
156
<div class="summarySignature">
157
<a class="signatureLink" href="#removeFile()">removeFile</a>(fileID:String):Object</div>
158
<div class="summaryTableDescription">
159
Removes the file from the set to be uploaded
162
</td><td class="summaryTableOwnerCol">Uploader</td>
165
<td class="summaryTablePaddingCol"> </td><td class="summaryTableInheritanceCol"> </td><td class="summaryTableSignatureCol">
166
<div class="summarySignature">
167
<a class="signatureLink" href="#setAllowLogging()">setAllowLogging</a>(allowLogging:Boolean):void</div>
168
<div class="summaryTableDescription">
169
Sets a flag allowing logging in Flash trace and Yahoo logger.</div>
170
</td><td class="summaryTableOwnerCol">Uploader</td>
173
<td class="summaryTablePaddingCol"> </td><td class="summaryTableInheritanceCol"> </td><td class="summaryTableSignatureCol">
174
<div class="summarySignature">
175
<a class="signatureLink" href="#setAllowMultipleFiles()">setAllowMultipleFiles</a>(allowMultipleFiles:Boolean):void</div>
176
<div class="summaryTableDescription">
177
Sets a flag allowing multiple file selection in the "Browse" dialog.</div>
178
</td><td class="summaryTableOwnerCol">Uploader</td>
180
<tr class="hideInheritedMethod">
181
<td class="summaryTablePaddingCol"> </td><td class="summaryTableInheritanceCol"><img class="inheritedSummaryImage" title="Inherited" alt="Inherited" src="images/inheritedSummary.gif"></td><td class="summaryTableSignatureCol">
182
<div class="summarySignature">
183
<a class="signatureLink" href="../com/yahoo/yui/YUIAdapter.html#setAltText()">setAltText</a>(value:String):void</div>
184
<div class="summaryTableDescription">
185
Sets the alternative text for assistive technology.</div>
186
</td><td class="summaryTableOwnerCol"><a href="../com/yahoo/yui/YUIAdapter.html">YUIAdapter</a></td>
189
<td class="summaryTablePaddingCol"> </td><td class="summaryTableInheritanceCol"> </td><td class="summaryTableSignatureCol">
190
<div class="summarySignature">
191
<a class="signatureLink" href="#setFileFilters()">setFileFilters</a>(newFilterArray:Array):void</div>
192
<div class="summaryTableDescription">
193
Sets a list of file type filters for the "Open File(s)" dialog.</div>
194
</td><td class="summaryTableOwnerCol">Uploader</td>
197
<td class="summaryTablePaddingCol"> </td><td class="summaryTableInheritanceCol"> </td><td class="summaryTableSignatureCol">
198
<div class="summarySignature">
199
<a class="signatureLink" href="#setSimUploadLimit()">setSimUploadLimit</a>(simUploadLimit:int):void</div>
200
<div class="summaryTableDescription">
201
Sets the number of simultaneous file uploads possible.</div>
202
</td><td class="summaryTableOwnerCol">Uploader</td>
205
<td class="summaryTablePaddingCol"> </td><td class="summaryTableInheritanceCol"> </td><td class="summaryTableSignatureCol">
206
<div class="summarySignature">
207
<a class="signatureLink" href="#upload()">upload</a>(fileID:String, url:String, method:String = "GET", vars:Object = null, fieldName:String = "Filedata"):void</div>
208
<div class="summaryTableDescription">
209
Uploads a file corresponding to a specified ID to a specified path where a script handles writing to the server.</div>
210
</td><td class="summaryTableOwnerCol">Uploader</td>
213
<td class="summaryTablePaddingCol"> </td><td class="summaryTableInheritanceCol"> </td><td class="summaryTableSignatureCol">
214
<div class="summarySignature">
215
<a class="signatureLink" href="#uploadAll()">uploadAll</a>(url:String, method:String = "GET", vars:Object = null, fieldName:String = "Filedata", headers:Object = null):void</div>
216
<div class="summaryTableDescription">
217
Uploads all files to a specified path where a script handles writing to the server.</div>
218
</td><td class="summaryTableOwnerCol">Uploader</td>
222
<a name="protectedMethodSummary"></a>
223
<div class="summarySection">
224
<div class="summaryTableTitle">Protected Methods</div>
225
<div class="showHideLinks">
226
<div class="hideInheritedProtectedMethod" id="hideInheritedProtectedMethod">
227
<a onclick="javascript:setInheritedVisible(false,'ProtectedMethod');" href="#protectedMethodSummary" class="showHideLink"><img src="images/expanded.gif" class="showHideLinkImage"> Hide Inherited Protected Methods</a>
229
<div class="showInheritedProtectedMethod" id="showInheritedProtectedMethod">
230
<a onclick="javascript:setInheritedVisible(true,'ProtectedMethod');" href="#protectedMethodSummary" class="showHideLink"><img src="images/collapsed.gif" class="showHideLinkImage"> Show Inherited Protected Methods</a>
233
<table id="summaryTableProtectedMethod" class="summaryTable hideInheritedProtectedMethod" cellpadding="3" cellspacing="0">
235
<th> </th><th colspan="2">Method</th><th class="summaryTableOwnerCol">Defined by</th>
237
<tr class="hideInheritedProtectedMethod">
238
<td class="summaryTablePaddingCol"> </td><td class="summaryTableInheritanceCol"><img class="inheritedSummaryImage" title="Inherited" alt="Inherited" src="images/inheritedSummary.gif"></td><td class="summaryTableSignatureCol">
239
<div class="summarySignature">
240
<a class="signatureLink" href="../com/yahoo/yui/YUIAdapter.html#initializeComponent()">initializeComponent</a>():void</div>
241
<div class="summaryTableDescription">
242
To be overridden by subclasses to add ExternalInterface callbacks.</div>
243
</td><td class="summaryTableOwnerCol"><a href="../com/yahoo/yui/YUIAdapter.html">YUIAdapter</a></td>
245
<tr class="hideInheritedProtectedMethod">
246
<td class="summaryTablePaddingCol"> </td><td class="summaryTableInheritanceCol"><img class="inheritedSummaryImage" title="Inherited" alt="Inherited" src="images/inheritedSummary.gif"></td><td class="summaryTableSignatureCol">
247
<div class="summarySignature">
248
<a class="signatureLink" href="../com/yahoo/yui/YUIAdapter.html#log()">log</a>(message:Object, category:String = null):void</div>
249
<div class="summaryTableDescription">
250
Sends a log message to the YUI Logger.</div>
251
</td><td class="summaryTableOwnerCol"><a href="../com/yahoo/yui/YUIAdapter.html">YUIAdapter</a></td>
253
<tr class="hideInheritedProtectedMethod">
254
<td class="summaryTablePaddingCol"> </td><td class="summaryTableInheritanceCol"><img class="inheritedSummaryImage" title="Inherited" alt="Inherited" src="images/inheritedSummary.gif"></td><td class="summaryTableSignatureCol">
255
<div class="summarySignature">
256
<a class="signatureLink" href="../com/yahoo/yui/YUIAdapter.html#showFatalError()">showFatalError</a>(message:Object):void</div>
257
<div class="summaryTableDescription"></div>
258
</td><td class="summaryTableOwnerCol"><a href="../com/yahoo/yui/YUIAdapter.html">YUIAdapter</a></td>
262
<script type="text/javascript" language="javascript">
266
<div class="MainContent">
267
<a name="propertyDetail"></a>
268
<div class="detailSectionHeader">Property detail</div>
269
<a name="simultaneousUploadLimit"></a>
270
<table cellspacing="0" cellpadding="0" class="detailHeader">
272
<td class="detailHeaderName">simultaneousUploadLimit</td><td class="detailHeaderType">property</td>
275
<div class="detailBody">
276
<code>public var simultaneousUploadLimit:Number = 2</code><p>
277
Determines how many files will be uploaded simultaneously
279
<span class="label">See also</span>
281
<div class="seeAlso">setSimUploadLimit</div>
283
<a name="constructorDetail"></a>
284
<div class="detailSectionHeader">Constructor detail</div>
285
<a name="Uploader()"></a>
286
<table cellspacing="0" cellpadding="0" class="detailHeader">
288
<td class="detailHeaderName">Uploader</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">constructor</td>
291
<div class="detailBody">
292
<code>public function Uploader()</code>
294
<a name="methodDetail"></a>
295
<div class="detailSectionHeader">Method detail</div>
296
<a name="cancel()"></a>
297
<table cellspacing="0" cellpadding="0" class="detailHeader">
299
<td class="detailHeaderName">cancel</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td>
302
<div class="detailBody">
303
<code>public function cancel(fileID:String = null):void</code><p>
304
Cancels either an upload of the file corresponding to a given fileID, or in the absence of the specified fileID, all active files being uploaded.
306
</p><span class="label">Parameters</span>
307
<table border="0" cellspacing="0" cellpadding="0">
309
<td width="20px"></td><td><code><span class="label">fileID</span>:String</code> (default = <code>null</code>)<code></code> — The ID of the file to be uploaded
314
<a name="clearFileList()"></a>
315
<table cellspacing="0" cellpadding="0" class="detailHeader">
317
<td class="detailHeaderName">clearFileList</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule"> </td>
320
<div class="detailBody">
321
<code>public function clearFileList():Boolean</code><p>
322
Clears the set of files that had been selected for upload
324
<span class="label">Returns</span>
325
<table border="0" cellspacing="0" cellpadding="0">
327
<td width="20"></td><td><code>Boolean</code></td>
331
<a name="disable()"></a>
332
<table cellspacing="0" cellpadding="0" class="detailHeader">
334
<td class="detailHeaderName">disable</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule"> </td>
337
<div class="detailBody">
338
<code>public function disable():void</code>
340
<a name="enable()"></a>
341
<table cellspacing="0" cellpadding="0" class="detailHeader">
343
<td class="detailHeaderName">enable</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule"> </td>
346
<div class="detailBody">
347
<code>public function enable():void</code>
349
<a name="removeFile()"></a>
350
<table cellspacing="0" cellpadding="0" class="detailHeader">
352
<td class="detailHeaderName">removeFile</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule"> </td>
355
<div class="detailBody">
356
<code>public function removeFile(fileID:String):Object</code><p>
357
Removes the file from the set to be uploaded
359
</p><span class="label">Parameters</span>
360
<table border="0" cellspacing="0" cellpadding="0">
362
<td width="20px"></td><td><code><span class="label">fileID</span>:String</code> — The ID of the file to be removed
367
<span class="label">Returns</span>
368
<table border="0" cellspacing="0" cellpadding="0">
370
<td width="20"></td><td><code>Object</code></td>
374
<a name="setAllowLogging()"></a>
375
<table cellspacing="0" cellpadding="0" class="detailHeader">
377
<td class="detailHeaderName">setAllowLogging</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule"> </td>
380
<div class="detailBody">
381
<code>public function setAllowLogging(allowLogging:Boolean):void</code><p>
382
Sets a flag allowing logging in Flash trace and Yahoo logger.
384
</p><span class="label">Parameters</span>
385
<table border="0" cellspacing="0" cellpadding="0">
387
<td width="20px"></td><td><code><span class="label">allowLogging</span>:Boolean</code> — Whether to allow log messages.
393
<a name="setAllowMultipleFiles()"></a>
394
<table cellspacing="0" cellpadding="0" class="detailHeader">
396
<td class="detailHeaderName">setAllowMultipleFiles</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule"> </td>
399
<div class="detailBody">
400
<code>public function setAllowMultipleFiles(allowMultipleFiles:Boolean):void</code><p>
401
Sets a flag allowing multiple file selection in the "Browse" dialog.
403
</p><span class="label">Parameters</span>
404
<table border="0" cellspacing="0" cellpadding="0">
406
<td width="20px"></td><td><code><span class="label">allowMultipleFiles</span>:Boolean</code> — Whether to allow multiple file selection.
412
<a name="setFileFilters()"></a>
413
<table cellspacing="0" cellpadding="0" class="detailHeader">
415
<td class="detailHeaderName">setFileFilters</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule"> </td>
418
<div class="detailBody">
419
<code>public function setFileFilters(newFilterArray:Array):void</code><p>
420
Sets a list of file type filters for the "Open File(s)" dialog.
422
</p><span class="label">Parameters</span>
423
<table border="0" cellspacing="0" cellpadding="0">
425
<td width="20px"></td><td><code><span class="label">newFilterArray</span>:Array</code> — An array of sets of key-value pairs of the form
426
{extensions: extensionString, description: descriptionString, macType: macTypeString [optional]}
427
The extension string is a semicolon-delimited list of elements of the form "xxx",
433
<a name="setSimUploadLimit()"></a>
434
<table cellspacing="0" cellpadding="0" class="detailHeader">
436
<td class="detailHeaderName">setSimUploadLimit</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule"> </td>
439
<div class="detailBody">
440
<code>public function setSimUploadLimit(simUploadLimit:int):void</code><p>
441
Sets the number of simultaneous file uploads possible.
443
</p><span class="label">Parameters</span>
444
<table border="0" cellspacing="0" cellpadding="0">
446
<td width="20px"></td><td><code><span class="label">simUploadLimit</span>:int</code> — Number of simultaneous uploads, no fewer than 1
447
and no larger than 5.
452
<a name="upload()"></a>
453
<table cellspacing="0" cellpadding="0" class="detailHeader">
455
<td class="detailHeaderName">upload</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule"> </td>
458
<div class="detailBody">
459
<code>public function upload(fileID:String, url:String, method:String = "GET", vars:Object = null, fieldName:String = "Filedata"):void</code><p>
460
Uploads a file corresponding to a specified ID to a specified path where a script handles writing to the server.
462
</p><span class="label">Parameters</span>
463
<table border="0" cellspacing="0" cellpadding="0">
465
<td width="20px"></td><td><code><span class="label">fileID</span>:String</code> — The ID of the file to be uploaded
469
<td class="paramSpacer"> </td>
472
<td width="20px"></td><td><code><span class="label">url</span>:String</code> — The path to the serverside script
476
<td class="paramSpacer"> </td>
479
<td width="20px"></td><td><code><span class="label">method</span>:String</code> (default = "<code>GET</code>")<code></code> — The HTTP submission method. Possible values are "GET" and "POST"
483
<td class="paramSpacer"> </td>
486
<td width="20px"></td><td><code><span class="label">vars</span>:Object</code> (default = <code>null</code>)<code></code> — An object containing variables to be sent along with the request
490
<td class="paramSpacer"> </td>
493
<td width="20px"></td><td><code><span class="label">fieldName</span>:String</code> (default = "<code>Filedata</code>")<code></code> — The field name that precedes the file data in the upload POST operation.
494
The uploadDataFieldName value must be non-null and a non-empty String.
499
<a name="uploadAll()"></a>
500
<table cellspacing="0" cellpadding="0" class="detailHeader">
502
<td class="detailHeaderName">uploadAll</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule"> </td>
505
<div class="detailBody">
506
<code>public function uploadAll(url:String, method:String = "GET", vars:Object = null, fieldName:String = "Filedata", headers:Object = null):void</code><p>
507
Uploads all files to a specified path where a script handles writing to the server.
509
</p><span class="label">Parameters</span>
510
<table border="0" cellspacing="0" cellpadding="0">
512
<td width="20px"></td><td><code><span class="label">url</span>:String</code> — The ID of the file to be uploaded
516
<td class="paramSpacer"> </td>
519
<td width="20px"></td><td><code><span class="label">method</span>:String</code> (default = "<code>GET</code>")<code></code> — The path to the serverside script
523
<td class="paramSpacer"> </td>
526
<td width="20px"></td><td><code><span class="label">vars</span>:Object</code> (default = <code>null</code>)<code></code> — The HTTP submission method. Possible values are "GET" and "POST"
530
<td class="paramSpacer"> </td>
533
<td width="20px"></td><td><code><span class="label">fieldName</span>:String</code> (default = "<code>Filedata</code>")<code></code> — An object containing data to be sent along with the request
537
<td class="paramSpacer"> </td>
540
<td width="20px"></td><td><code><span class="label">headers</span>:Object</code> (default = <code>null</code>)<code></code> — The field name that precedes the file data in the upload POST operation. The uploadDataFieldName value must be non-null and a non-empty String.
550
<center class="copyright">