\ DriveHQ Customer Support Forum \
Đã đọc/Trả lời : 66888/7
  • 12padams
  • (1bài đăng)

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


04/09/2010 6:18:55 CH

  • DriveHQ Webmaster
  • (1098bài đăng)
Chủ thể: 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.


Hồi đáp
08/09/2010 2:20:52 SA

  • Friend
  • (1bài đăng)
Chủ thể: 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 


Hồi đáp
30/11/2010 1:56:11 CH

  • iipg
  • (1bài đăng)
Chủ thể: 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


Hồi đáp
19/05/2011 11:15:40 CH

  • X-Man-Tactical
  • (2bài đăng)
Chủ thể: 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.


Hồi đáp
08/01/2014 5:04:14 SA

  • X-Man-Tactical
  • (2bài đăng)
Chủ thể: 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 


Hồi đáp
08/01/2014 5:19:33 SA

  • ezaldeen1
  • (2bài đăng)
Chủ thể: 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 ?


Hồi đáp
22/01/2015 1:39:23 CH

  • ezaldeen1
  • (2bài đăng)
Chủ thể: 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

 


Hồi đáp
10/04/2016 1:59:34 CH

Đánh dấu trang & Chia sẻ
Trả lời nhanh

Leading Cloud Surveillance service

Leading Enterprise Cloud IT Service Since 2003