Hello,
I am uploading a image using fileupload.
I have
If FileUpload1.HasFile Then
FileUpload1.SaveAs(Server.MapPath("\Photos\Students\" + GridView1.SelectedRow.Cells(1).Text + ".JPG"))
End If
I want to save the file with a filename of the data in GridView1.SelectedRow.Cells(1).Text
But After clicking the button I get this error:
Failed to map the path '/Photos/Students/20070143.JPG'.
Can someone solve this problem?
Additionally what will happen if I succesfully upload the file but there's an existing file with the same filename? Will it overwrite it??
...
Go to the complete details ...