Forum Index \ DriveHQ Customer Support Forum \
Read/Reply : 52992/7
  • 12padams
  • (1 posts)

ok I am able to downlaod files from this server using

My.Computer.Network.DownloadFile("http://www.drivehq.com/webdav/12padams/test.txt", "c:/test.txt", "myusername", "mypass")

but I cant get uploading to work using this code:

My.Computer.Network.UploadFile("c:/vcredist_x86.log", "http://www.drivehq.com/webdav/12padams/test.txt", "myusername", "mypass")

It does not come up with any errors when i run the program (It comes up with an error if i type the password wrong) but once its done "sending" the file never appears.

Am i sending it to the wrong place?

Please help me be able to upload files using visual basic.net


9/4/2010 6:18:55 PM

  • DriveHQ Webmaster
  • (1098 posts)
Subject: Re:Making a visual basic application to upload files to server

Sorry we don't use Visual Basic here,,, we cannot answer this question. I hope somebody else can answer this question for you.

You might want to check DriveHQ FileManager or DriveHQ Online Backup. You can automatically sync a local folder with a remote folder, or automatically  backup your files to DriveHQ Online Storage.


Reply
9/8/2010 2:20:52 AM

  • Friend
  • (1 posts)
Subject: Re:Making a visual basic application to upload files to server

I don't or am  ot using visual basic but am getting the same thing she is.......everything works until I pit my password in and then it tells me I have the wrong one. Funny, but I mever gave a password before 


Reply
11/30/2010 1:56:11 PM

  • iipg
  • (1 posts)
Subject: Re:Making a visual basic application to upload files to server

Hi, i would like to upload all my folders to my apple server as I now wish to utalise my drive hq account as back up


Reply
5/19/2011 11:15:40 PM

  • X-Man-Tactical
  • (2 posts)
Subject: Re:Making a visual basic application to upload files to server

 i actually can't download but i cam upload.  I am still coding to cheick the mistake.


Reply
1/8/2014 5:04:14 AM

  • X-Man-Tactical
  • (2 posts)
Subject: Re:Making a visual basic application to upload files to server

 cool. everything is now working.

hey 2010 !

"http://www.drivehq.com/webdav/12padams/test.txt"

but change it to this and it will freely work

ftp://ftp.drivehq.com\path\file.txt

cool

by 


Reply
1/8/2014 5:19:33 AM

  • ezaldeen1
  • (2 posts)
Subject: Re:Making a visual basic application to upload files to server

Hi .. is there any VB6 code can i sue to uplaod file to DriveHQ ?


Reply
1/22/2015 1:39:23 PM

  • ezaldeen1
  • (2 posts)
Subject: Re:Making a visual basic application to upload files to server

I used VB6 code to upload the file from my computer and it work fine without any error but the file not showing in my Storage folder

THIS THE CODE I USED :

Dim host_name As String

    Enabled = False
    MousePointer = vbHourglass
    txtResults.Text = "Working"
    txtResults.SelStart = Len(txtResults.Text)
    DoEvents

    host_name = "ftp.drivehq.com"
    If LCase$(Left$(host_name, 6)) <> "ftp://" Then host_name = "ftp://" & host_name
    inetFTP.URL = host_name
txtLocalFile.Text="D:\TTT.TXT"

txtRemoteFile.Text="TEXT.TXT"


    inetFTP.UserName = txtUserName.Text   ' mY USERNAME
    inetFTP.Password = txtPassword.Text   ' MY PASSWORD

    inetFTP.Execute , "Put " & _
        txtLocalFile.Text & " " & txtRemoteFile.Text

 

THE CODE WORKING FILE WITHOUT ANY ERROR BUT WHEN I RETUNED CHECKED MY STORAGE FILE I COULDNOT FIND THE FILE THERE

PLEASE IF THERE IS ANY SOLUATION OR vb6 CODE CAN I USE

THANKS

 


Reply
4/10/2016 1:59:34 PM

Quickly Reply

Please logon and reply, Not DriveHQ Member?


Leading Cloud Surveillance service

Leading Enterprise Cloud IT Service Since 2003