how to create Music fileupload?ex audio,video files

Posted by Chandru_ra under Regular Expressions on 3/31/2011 | Points: 10 | Views : 1379 | Status : [Member] | Replies : 1
Dear all,

Now am using normal fileuploading concept.but this not supported in music files..

Error Displayed for:

The connection wat reset...
am using this coding:
protected void btnsubmit_Click(object sender, EventArgs e)
{
MusicName = System.IO.Path.GetFileName(filemusic.FileName.ToString());
if (filemusic.HasFile)
{
//Save File to the proper directory
filemusic.SaveAs(System.Web.HttpContext.Current.Request.MapPath("UploadFiles/") + MusicName);
//Combine the Path for save into the column of table
Musicfile = "UploadFiles/" + MusicName;
}
else
{
Musicfile = "UploadFiles/notadded.jpg";
}
}


chandru


Responses

Posted by: Prabhakar on: 3/31/2011 [Member] [MVP] Starter | Points: 25

Up
0
Down
Hi Chandru . .


u want to upload mp3 or video ... etc.. so check this All Article . . it's a very Use full for you


http://msdn.microsoft.com/en-us/library/aa479405.aspx

Best Regard's
Prabhakar

Chandru_ra, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response