## Aurigma Image Uploader Flash 1.0

# Image Uploader Flash Architecture

- Collapse All Sections
- See Also
- Language Filter ( all languages )

## What Is Image Uploader Flash?

Image Uploader Flash is the solution intended to make mass file upload easier. It is simply embedded into HTML code of your web page where it can be run in any browser, all you need is just to have Flash Player installed. A modern appearance and intuitive user interface make Image Uploader Flash attractive for end-users as well as clear for computer novices. Here is a common workflow to upload files with the uploader:

1. Users visit a page where Image Uploader Flash resides and select as many files as they want via a standard Open File dialog.
2. When all the files are added, they click Send to start the upload.
3. Image Uploader Flash prepares a HTTP POST request with user-selected files and additional data and sends it to the server page specified in its settings. This page receives and processes data sent by the uploader and performs any other upload-related actions.
4. Progress bar with remaining upload time estimation is shown during the upload process; so, users always know how long to wait, and they can always stop the upload if it takes too long.

Additionally, Image Uploader Flash is able to apply automatic client-side data optimization before sending it. For example, it can resize images and compress files to ZIP archives. This way the component reduces traffic, uploading time, and server disk amount used to store your data.

The figure below demonstrates Image Uploader Flash architecture:

Let us consider its main parts in detail.

## How Does It Work Client-Side

Client-side part consists of the Flash control (aurigma.imageuploaderflash.swf) and its embedding script (aurigma.imageuploaderflash.js). The first one implements a common functionality, namely, user interface for selecting and sorting files, pre-upload file processing, and sending files via HTTP POST request. The second one, a so-called Image Uploader Flash embedding script, is a JavaScript library intended to insert the control into a page and configure it. Additionally, it allows manipulating Image Uploader Flash at runtime, i.e. change its properties, call methods, and handle events. The JavaScript library also helps to debug integration of Image Uploader Flash with your web service by displaying notifications if some parameters have inconsistent values. These notifications can be disabled when you are ready to go live with your web site.

## How Does It Work Server-Side

Since Image Uploader Flash sends files and data in HTTP POST request, the server-side part is represented with a web server which hosts your application. This server performs all the upload-related tasks, such as receiving and saving uploaded files to necessary folders, updating a database, sending email notifications, and etc. In a word, this part implements the internal logic of your application which uses Image Uploader Flash.

When developing this part you may implement your own upload script which will parse the POST request received from the uploader. In this case you can use any server platform which is able to receive HTTP POST request. Another way is to use a special ASP.NET or PHP library shipped with Image Uploader Flash (see the section below). These libraries get data sent by the uploader, parse it, and provide a typed access to files and text fields on the server side. The built-in autosave feature allows you to create your upload solution without writing a line of code.

See the Uploading section for details.

## Image Uploader Flash Wrappers for Server Platforms

If you are going to use Image Uploader Flash in ASP.NET or PHP application, we strongly recommend you to use special libraries described in this section. These libraries, so-called wrappers, come with Image Uploader Flash and simplify its usage. They unify client-side and server-side parts in the following ways:

- On the client side they allow inserting and configuring Image Uploader Flash without using JavaScript.
- On the server side they parse POST request received from Image Uploader Flash and provide a typed access to uploaded data.

### Image Uploader Flash ASP.NET Control

Image Uploader Flash ASP.NET control is an ASP.NET server control which can be added to a page and configured in Visual Studio designer. When handling the upload Image Uploader Flash ASP.NET control provides an access to the uploaded data via collections familiar to all ASP.NET developers. The Quick Start with ASP.NET Control topic gives outlook on how to use the ASP.NET control in your web solution.

### Image Uploader Flash PHP Library

Image Uploader Flash PHP library implements almost the same functionality and offers the same advantages as the ASP.NET control. It allows PHP developers to work with Image Uploader Flash in a usual way as with a common PHP object. Find the detailed information about the PHP library in the Quick Start with PHP Library topic.

## See Also

### Manual

- Quick Start with ASP.NET Control
- Quick Start with PHP Library
- Quick Start with Embedding Scripts Library
- Using Image Uploader Flash at Runtime