This documentation is for the old version. Go to the latest Upload Suite docs

Converter Class

Supported browsers: Internet ExplorerFirefoxGoogle ChromeSafari

This class represents a file converter.

Namespace: Aurigma.ImageUploader
Assembly: Aurigma.ImageUploader (in Aurigma.ImageUploader.dll)

Syntax

Visual Basic
Public Class Converter
C#
public class Converter

Remarks

Image Uploader allows sending so-called converted files for each of the user-selected files. These files are configured using the Converters property of the Uploader object. This property accepts a collection of Converter instances. Each converter describes one file (source, thumbnail, icon, or ZIP archive) to be uploaded for every file a user selects.

For instance, you set the following collection of converters:

ASP.NET
<aur:Uploader ID="Uploader1" runat="server">
    <Converters>
        <aur:Converter Mode="*.*=SourceFile" />
        <aur:Converter Mode="*.*=Thumbnail;*.*=Icon" 
            ThumbnailHeight="120" 
            ThumbnailWidth="120" 
            ThumbnailFitMode="Fit" />
    </Converters>
</aur:Uploader>

It means that Image Uploader will send an original file and its resized copy or icon. So if a user selects two files (a JPEG image and a PDF document) Image Uploader will send four files:

  • the JPEG image and the PDF file themselves,
  • a resized copy of the image and a PDF icon.

Inheritance Hierarchy

System.Object
L Aurigma.ImageUploader.Converter

See Also

Reference

Manual