I can build a Gmail style file uploader using JQuery and Uploadify plugin for JQuery in ASP.Net with the help of this article
http://www.aspsnippets.com/Articles/Select-and-Upload-Multiple-Files-Gmail-Style-using-JQuery-and-ASP.Net.aspx
The script is
<script type = "text/javascript">
$(window).load(
function() {
$("#<%=FileUpload1.ClientID %>").fileUpload({
'uploader': 'scripts/uploader.swf',
'cancelImg': 'images/cancel.png',
'buttonText': 'Browse Files',
'script': 'Upload.ashx',
'folder': 'uploads',
'fileDesc': 'Image Files',
'fileExt': '*.jpg;*.jpeg;*.gif;*.png',
'multi': false,
'auto': true
});
}
);
</script>
My question is how can i pass the file name into label so i can insert the file name in database. Please help.
if i use 'fileDataName': 'FileData',
in the script then how can i get the file name. Please help.