Aurigma Image Uploader 5.8 Dual
ImageUploader.UploadSourceFile Property
See Also Supported in: ActiveX Java

Switch that specifies whether original file should be uploaded or it is necessary to upload only resized copies.

# Syntax

##### Initialize

JavaScript | Copy Code
--- | ---
    <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 | Copy Code
--- | ---
    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.

# See Also

##### Examples

Writing Server-Side Upload Code
Adding Watermarks
Resizing and Rotating Images

##### Reference

UploadThumbnail1FitMode Property
UploadThumbnail2FitMode Property
UploadThumbnail3FitMode Property