In order to install the control you need to follow these steps:
- Place com.flajaxian.FileUploader.dll in the BIN folder of your web server
- Add the following tag at the top of your aspx page:
- 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" />
<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 :
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