|
-
Jan 6th, 2008, 10:28 AM
#1
Thread Starter
Addicted Member
[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.
-
Jan 6th, 2008, 10:47 AM
#2
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
-
Jan 6th, 2008, 11:30 AM
#3
Lively Member
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"
-
Jan 6th, 2008, 12:06 PM
#4
Thread Starter
Addicted Member
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")
-
Jan 6th, 2008, 12:08 PM
#5
Frenzied Member
Re: [2008] Upload Text File
Is it the correct FreeHostia login details?
Maybe try disabling Windows Firewall, it always blocks my FTP Requests.
-
Jan 6th, 2008, 12:18 PM
#6
Thread Starter
Addicted Member
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?
-
Jan 6th, 2008, 12:21 PM
#7
Thread Starter
Addicted Member
Re: [2008] Upload Text File
it worked
i removed the folder...donno what was the problem
ftp://myusrname.freehostia.com/test.txt
worked
-
May 12th, 2008, 09:51 AM
#8
Lively Member
Re: [RESOLVED] [2008] Upload Text File
Can You Please send me the total code of the same
Thanks
with Regards
sameer Mulgaonkar

Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|