Upload Suite consists of ready-to-use client applications based on major technologies, so it works with the most important platforms (Windows, Mac, Linux) and in all modern browsers (IE, Mozilla, Safari, Google Chrome).
To start you have to choose an uploader: Java/ActiveX that for more advanced projects or HTML5/Flash for lightweight ones. The exact technology will be chosen automatically depending on the user’s browser. Also you should configure the uploader and, perhaps, write server code (however Uploader Suite can resolve specific tasks without a single line of server code).
Let’s consider how to add Aurigma’s HTML5/Flash Uploader to your web application which will upload and save files to a specific folder. You can also use Java/ActiveX Uploader in the same manner.
We’ve now added the client-side uploader to the application. Now let’s configure the uploader. We can perform this in two ways. The first is to use the list of control properties in the Properties editor:
The second way is to modify ImageUploaderFlash properties in the ASP.NET page source code:
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %> <%@ Register assembly="Aurigma.ImageUploaderFlash" namespace="Aurigma.ImageUploaderFlash" tagprefix="aur" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html> <head runat="server"> <title>ASP.NET Control Sample</title> </head> <body> <form id="form1" runat="server"> <aur:ImageUploaderFlash ID="Uploader1" runat="server" LicenseKey="XXXXX-XXXXX-XXXXX-XXXXX-XXXXX-XXXXXX"> AutoSave="true" DestinationFolder="~/Catalog" <Converters> <aur:Converter Mode="*.*=SourceFile" /> </Converters> </aur:ImageUploaderFlash> </form> </body> </html>
As you may have noticed, the HTML5/Flash Uploader, like any ASP.NET control, embeds in a form tag and has
runat parameters. Let’s discuss other properties that have been used:
That's all! As we noted above, Uploader Suite can upload and save files without a single line of server code. If you run the application, you’ll see a simple upload interface (if your browser supports HTML5, it will use the HTML5 control, and Flash otherwise):