Aurigma Image Uploader 6.5 Dual
ImageUploader.UploadSourceFile Property
Switch that specifies whether original file should be uploaded or it is necessary to upload only resized copies.
Syntax
Initialize
JavaScript
<script type="text/javascript" src="iuembed.js"> </script> <script type="text/javascript"> var iu = new ImageUploaderWriter("ImageUploaderID", 610, 500); //...other params... iu.addParam("UploadSourceFile", "true"); //...other params... iu.writeHtml(); </script>
Get/Set Value in Runtime
JavaScript
getImageUploader("ImageUploaderID").setUploadSourceFile(value);
value = getImageUploader("ImageUploaderID").getUploadSourceFile();Property Value
A boolean value (true or false). If true, the original source file is uploaded. Otherwise only thumbnails (with fit modes which is different than Off) are sent.
Default value is "true".
Remarks
Sometimes it makes sense to disable the source file upload and send only thumbnails. For example, if you develop a photo hosting web site where you should display images with maximum dimensions, say, 800x600, and your users will send high-resolution digital photos, you can just upload resized version. This way you highly reduce the traffic and increase the upload speed.