Post a reply

Before posting, please read how to report bug or request support effectively.

Bug reports without an attached log file are usually useless.

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

martin

Re: How to Upload files to a ftp directory?

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
mkw007

Re: How to Upload files to a ftp directory?

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!
martin

Re: How to Upload files to a ftp directory?

This is support forum for WinSCP.

It does not look like you are using WinSCP.
mkw007

How to Upload files to a ftp directory?

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!