hi guys, i just wanna know how to upload different kinds of file formats like .docx,.xlsx,.pptx,.jpg,.gif,.png.
below is the code given by my teacher
Dim bond As New OleDbConnection("Provider=Microsoft.jet.oledb.4.0;Data Source=" & Server.MapPath("Portal.mdb"))
bond.Open()
Dim sqlComm As String
If Not (fileUp.HasFile) Then
upMess.Text = "Please attach a file."
Else
fileUp.SaveAs(Server.MapPath("~/Document/") & fileUp.FileName)
upMess.Text = "File upload successful."
sqlComm = "INSERT INTO FacultyEclass VALUES( Go to the complete details ...