I have tried all the suggestions no luck. It is uploading the file to a different server then my webserver. The permissions are set and it only saves the file on my development machine. Impersonation is enabled. Not sure what I am missing??
If FileUpload1.HasFile Then
Try
FileUpload1.SaveAs("\\Server\Data\Files\" + FileUpload1.FileName)
Catch ex As Exception
End Try
Else
'Label1.Text = "You have not specified a file."
End If
MKozlowski
Member
500 Points
573 Posts
Re: FileUpload1.SaveAs does not work correctly?
May 01, 2012 12:34 PM|LINK
I have tried all the suggestions no luck. It is uploading the file to a different server then my webserver. The permissions are set and it only saves the file on my development machine. Impersonation is enabled. Not sure what I am missing??
If FileUpload1.HasFile Then Try FileUpload1.SaveAs("\\Server\Data\Files\" + FileUpload1.FileName) Catch ex As Exception End Try Else 'Label1.Text = "You have not specified a file." End If