here are couple of things necessary to make the program working
the format of address much be separated with double Quote between host address, Library and destination file.
Dim fi As New FileInfo(localFileName) Dim ub As UriBuilder = New UriBuilder ub.Host ="HostAddress/" ub.Scheme = URI.UriSchemeFtp ub.Path = String.Format("{0}/%2F{1}.file", "/QSYS.LIB/%2FFTPTEMP.LIB",
fileName.Replace(System.IO.Path.GetExtension(ftpUpload.PostedFile.FileName), ""))
QSYS.LIB is the default system library.
FTPTEMP.LIB is the destination upload folder.
No comments:
Post a Comment