0 Replies - 956 Views - Last Post: 07 January 2009 - 02:58 AM Rate Topic: -----

#1 Guest_NIXZ*


FTP Server not responding (Quickly)

Posted 07 January 2009 - 02:58 AM

I use this code for ftp upload:

		Dim FTPRequest As System.Net.FtpWebRequest = DirectCast(System.Net.WebRequest.Create("ftp://something.ueuo.com/Uploaded.txt"), System.Net.FtpWebRequest)
		FTPRequest.Credentials = New System.Net.NetworkCredential(FtpUsername, FtpPassword)
		FTPRequest.Method = System.Net.WebRequestMethods.Ftp.UploadFile
		Dim File() As Byte = System.IO.File.ReadAllBytes("C:\Test.txt")
		Dim FTPStream As System.IO.Stream = FTPRequest.GetRequestStream()
		FTPStream.Write(File, 0, File.Length)

But it takes about 2-3 minutes for the server to make it available on http://
What i mean is that when i upload the file and then login to account managment --> file managment i can choose to edit Uploaded.txt

Posted Image

but if you type the adress "http://something.ueuo.com/Uploaded.txt" the file has still data from a previous upload

Posted Image

The actuall file is not uploaded.txt but something like nixzpcnixz.12312...

how can i "ftp download" ???

This post has been edited by NIXZ: 07 January 2009 - 05:29 AM

Is This A Good Question/Topic? 0

Page 1 of 1