Topic "How to Upload files to a ftp directory?"

Author Message
mkw007

Guest


Hi to all,

There is a problem that I cannot upload a file to ftp directory. Who can write a demo to upload file to a ftp directory based on Visual Basic 6.0 SDK? And the root directory of my ftp is public_html not /.

My codes based on VB6 to upload a file to my ftp server as follow:

'Connect to the ftp and return the connect handle 'hCon'

FtpCreateDirectory public_html/MyDir 'create a new ftp directory called MyDir

FtpPutFile hCon, LocalFile,MyDir,0 ' to upload a localfile to the ftp directory 'MyDir', but it fail!


Who can help with this?
Thanks!
Advertisements
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 26331
Location: Prague, Czechia
This is support forum for WinSCP.

It does not look like you are using WinSCP.
mkw007

Guest


Dear Martin,

Thanks for your attention to my poster.
I'm using your WinSCP to upload my files to my ftp server! Your WinSCP can work and upload files to ftp directory sucessfully!
Unfortunately, I use the Windows API demostrated in the previous poster to upload files to the ftp directory,but it fail! I want to know why your WinSCP can work, but the Windows API to upload file to ftp server based an VB6 fail!

Therefore, I'm appreciated if your can help me with this problem?

Thanks!
111.jpg (86.88 KB) [Download]

Description: I'm using your WinSCP!

martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 26331
Location: Prague, Czechia
Ok, but your question/problem is not about WinSCP.

Unless you want to switch to using WinSCP .NET assembly.

If you want, see:
https://winscp.net/eng/docs/library_vb
Advertisements

You can post new topics in this forum






Search Site

What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

WinSCP Privacy Policy

WinSCP License