Skip Navigation LinksHome > Articles > Asp.net > Single File upload using Flash and Asp .Net(c#)

Single File upload using Flash and Asp .Net(c#)

This article explains how to extend currently available flash file upload control to be used in Asp .Net with single file upload limit

By Project 9X   On   Thursday, 10 September 2009

Page Views : 867   |   Technologies : Asp.net

Rating : Rated :
0

Recently I came across the requirement that user can only select only one file to upload. File size can be large. I almost tried all free upload controls on web. Finally I got inspired from Multiple File Upload with Progress Bar Using Flash and ASP.NET – (By darick_c)  on code project and thought of creating single file upload using FLEX. I didn’t do much, just changed swf as a required. I’m not going to explain everything, code is attached and you can find explanation at above link.

I have changed some UI of the control and made it relevant to single file.

Screen shots:

1)

 

2)

 

 Download the code attached with this article and read comments.

You may want to change size limit and files supported.

<FlashUpload:FlashUpload ID="flashUpload" runat="server"             UploadPage="Upload.axd" OnUploadComplete="UploadComplete()"             FileTypeDescription="Images" FileTypes="*.gif; *.png; *.jpg; *.jpeg"             UploadFileSizeLimit="10000000" TotalUploadSizeLimit="50097152" />

 

Web.config file settings

 

<httpRuntime maxRequestLength="1550000"/>

 

-----  = change as required      

 

 click here to read more.

Again this is very short article, just thought of sharing it to world; anyway five people will read thisJ

If you have any question , leave comment here.

 


Keywords :
Tags :
Rate This Article :

Comments :

# 1 Annonymous Wrote on 09/22/2009


good



# 2 Annonymous Wrote on 11/08/2009


This is what I have been looking for, great. Would it be possible to get the source file for the swf? I would like to make some mxml changes.



Write a Comment / Question / Feedback ...


User Login
Username :
Password :
Register Login

Forgot Password


Related Articles