[RESOLVED] [2008] Upload Text File
whats wrong with this code?
Code:
My.Computer.Network.UploadFile("C:\test.txt", "/www/myusername.freehostia.com/Text Files/test.txt", "myname", "mypass")
im getting
'/www/myusername.freehostia.com/Text Files/test.txt' is not a valid remote file address. A valid address should include a protocol, a path and a file name. Parameter name: address
please help.
Re: [2008] Upload Text File
You should specify wether it is http or ftp in the beginning of the address.
Since Im guessing its not http, it would be ftp ;)
Re: [2008] Upload Text File
it must also be www. not www/.
if you keep getting the error after adding http:// or ftp
then you can do %20% between the "text" and the "file" (%20 = space) so text%20file. But mayby it will do it hisself.
http or ftp://www.myusername.freehostia.com/Text%20Files/test.txt"
Re: [2008] Upload Text File
Im getting
The remote server returned an error: (550) File unavailable (e.g., file not found, no access).
Code:
My.Computer.Network.UploadFile("C:\test.txt", "ftp://myusrname.freehostia.com/Text%20Files/test.txt", "username", "password")
Re: [2008] Upload Text File
Is it the correct FreeHostia login details?
Maybe try disabling Windows Firewall, it always blocks my FTP Requests.
Re: [2008] Upload Text File
no, i cant disable my firewall. users dont accept to disable the firewall..
Is there any other way to upload a text file to the net?
Re: [2008] Upload Text File
it worked
i removed the folder...donno what was the problem
ftp://myusrname.freehostia.com/test.txt
worked
Re: [RESOLVED] [2008] Upload Text File
Can You Please send me the total code of the same
Thanks