G
Giulio Simeone
Browsing in the web I find a lot of articles that argue: "With ASP.NET
2.0. uploading files is pretty easy!". I spent on that problem last
three days but didn't found my way through it.
I have to develop a web page that uploads files from my computer to a
remote server. I tried to do it in many different ways, the last one
is:
Dim c,s As String
Dim v() As String
Dim sql As New StringBuilder
c = fileToUpload.PostedFile.FileName
ReDim Preserve v(10)
v = c.Split("\")
s = v(UBound(v))
' c is the entire path, s is only the filename, ex. frog.jpg
Label1.Text = c
Dim up = New System.Net.WebClient
up.Credentials = New Net.NetworkCredential("......",
"........")
up.UploadFile("http://www.spaziomio.net/public/" & s, s)
But doesn't work, it returns me a WebException.
Can you tell me a simple way to upload files from my computer to a
remote server?
Thanks a lot, excuse me for my approximate English!!
2.0. uploading files is pretty easy!". I spent on that problem last
three days but didn't found my way through it.
I have to develop a web page that uploads files from my computer to a
remote server. I tried to do it in many different ways, the last one
is:
Dim c,s As String
Dim v() As String
Dim sql As New StringBuilder
c = fileToUpload.PostedFile.FileName
ReDim Preserve v(10)
v = c.Split("\")
s = v(UBound(v))
' c is the entire path, s is only the filename, ex. frog.jpg
Label1.Text = c
Dim up = New System.Net.WebClient
up.Credentials = New Net.NetworkCredential("......",
"........")
up.UploadFile("http://www.spaziomio.net/public/" & s, s)
But doesn't work, it returns me a WebException.
Can you tell me a simple way to upload files from my computer to a
remote server?
Thanks a lot, excuse me for my approximate English!!