Ultimate Uploader v1.4
PHP/HTML Control |
Integration into simple PHP or ASP.NET web site
<object id="ultimateUploader" data="data:application/x-silverlight-2," type="application/x-silverlight-2" width="100%" height="100%">gt; <param name="source" value="UltimateUploader.xap"/> <param name="background" value="white" /> <param name="minRuntimeVersion" value="3.0.40624.0" /> <param name="autoUpgrade" value="true" /> <param name="onLoad" value="onSilverlightLoaded" /> <a href="http://go.microsoft.com/fwlink/?LinkID=149156&v=3.0.40624.0" style="text-decoration: none;"> <img src="http://go.microsoft.com/fwlink/?LinkId=108181" alt="Get Microsoft Silverlight" style="border-style: none"/> </a> </object>
There are two ways to set parameters for the upload control - initial parameters of the <object> and settings properties through javascript. Initial parameters are applied once at object initialization, while settings properties through javascript you can make at any moment.
For setting initial parameters add in the inside <object> tag the <param name="initParams"> tag like this:
<object id="ultimateUploader" data="data:application/x-silverlight-2," type="application/x-silverlight-2" width="100%" height="100%"> ... <param name="initParams" value="ChunkSize=0,UploadHandler=/upload.php,FileTypesFilter=All files (*.*)|*.*,MaxFileSize=0,ConcurrentUploads=1" /> ... </object>
You can omit any parameter, in this case it will be set to default value. For complete parameter list and their default values see Initial Parameters Reference.
For settings parameters via javascript simply set necessary properties of control at any time, for example at page load. Example of setting properties is in JavaScript API section, for complete property list see JavaScript API Reference.