Monday, February 3, 2014

Open Source - Multiple file FileUploader

Download dll and you use the "References" item in the Solution Explorer to add a reference to it; Right-click and choose to Add Reference. There is an option there to select the DLL file.

In order to install the control you need to follow these steps:
  1. Place com.flajaxian.FileUploader.dll in the BIN folder of your web server
  2. Add the following tag at the top of your aspx page:
<%@ Register TagPrefix="fjx" Namespace="com.flajaxian" Assembly="com.flajaxian.FileUploader" %>
  1. Add the following tags inside the BODY element of the ASPX page, where you would like to see the FileUploader

    <fjx:FileUploader ID="FileUploader1" runat="server" >
        <Adapters>
            <fjx:FileSaverAdapter Runat="server" FolderName="UploadFolder" />
        </Adapters>
    </fjx:FileUploader>


    As you can see here we use FileSaverAdapter. The files will be uploaded on a folder with name "UploadFolder".
You may want to redefine the values in web.config file for the request timeout and maximum file size. You can do that in the section configuration - system.web as follow:

<httpRuntime executionTimeout="1800"
              maxRequestLength="1048576"
              useFullyQualifiedRedirectUrl="false" />
In this case we set timeout to 1800 seconds or 30 minutes and file size to 1048576KB or 1GB




Some time we need file name etc on code behind to save in database for this create event    onfilereceived it work as upload button click.

For Video Tutorial click here :

No comments:

Post a Comment