Results 1 to 8 of 8

Thread: [RESOLVED] [2008] Upload Text File

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Dec 2007
    Posts
    167

    Resolved [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.

  2. #2
    Raging swede Atheist's Avatar
    Join Date
    Aug 2005
    Location
    Sweden
    Posts
    8,018

    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
    Rate posts that helped you. I do not reply to PM's with coding questions.
    How to Get Your Questions Answered
    Current project: tunaOS
    Me on.. BitBucket, Google Code, Github (pretty empty)

  3. #3
    Lively Member
    Join Date
    Jul 2007
    Location
    Mechelen
    Posts
    119

    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"

  4. #4

    Thread Starter
    Addicted Member
    Join Date
    Dec 2007
    Posts
    167

    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")

  5. #5
    Frenzied Member
    Join Date
    Dec 2007
    Posts
    1,072

    Re: [2008] Upload Text File

    Is it the correct FreeHostia login details?

    Maybe try disabling Windows Firewall, it always blocks my FTP Requests.

  6. #6

    Thread Starter
    Addicted Member
    Join Date
    Dec 2007
    Posts
    167

    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?

  7. #7

    Thread Starter
    Addicted Member
    Join Date
    Dec 2007
    Posts
    167

    Re: [2008] Upload Text File

    it worked
    i removed the folder...donno what was the problem
    ftp://myusrname.freehostia.com/test.txt
    worked

  8. #8
    Lively Member sameer spitfire's Avatar
    Join Date
    Nov 2001
    Location
    India
    Posts
    120

    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
  •  



Click Here to Expand Forum to Full Width