Hello, I'm trying to use the file upload control to let users upload a file to my hosted site. I get this error:
The SaveAs method is configured to require a rooted path, and the path 'http://www.website.com/pdf/79493233_249894425_0.jpg'
is not rooted.
What would be the correct path it is expecting?
Here is my code:
Protected Sub btnUpload_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnUpload.Click
If FileUpload1.HasFile Then
" & FileUpload1.FileName)
lblmessage2.Text = "Received " & FileUpload1.FileName & " Content Type " & FileUpload1.PostedFile.Con
tentType & " Length " & FileUpload1.PostedFile.Con
lblmessage2.Text = "No uploaded file"
lblmessage2.Visible = True