PC SOFT

FORUMS PROFESSIONNELS
WINDEVWEBDEV et WINDEV Mobile

Accueil → WINDEV 2024 → FTPConnect problem
FTPConnect problem
Débuté par Corina, 12 déc. 2016 20:11 - 4 réponses
Posté le 12 décembre 2016 - 20:11
Hi,
I'm trying to get a file from a non secure FTP, the connection it's done ok, but when i try to get the file i recieved "Unable to define current directory on server" error, and this is because the user don't have permission to make a pwd on the ftp.

It's possible than ftpget function is using this ftp command and that's the reason why i can't download the file?

It's any way to avoid this problem?

Thanks,
Corina
Membre enregistré
102 messages
Popularité : +2 (2 votes)
Posté le 14 décembre 2016 - 12:08
Corina,

I don't think that this is the problem. You should be able to download a file from an already established connection even if this is without password.

How about sharing your code here on the forum? Maybe one of the group members can help.

Sebastian

--
http://arnoldconsult.de
WinDev 21 with Oracle, WinDevMobile Android Apps and Motorola Windows CE Mobile Barcode Scanners, Python 3 with Oracle and MySQL
Posté le 16 décembre 2016 - 12:09
Hi again,

The problem it's not the password, the problem is when i use the ftpget() instruction, probably is using the fpw command (print working directory) and the user don't have permission to make a print working directory.
So the download don't work.

I dont' know exactly which instrucction of ftp commands is using de print working directory... i assume it's ftpget() because the ftpconnect() works ok.

Thanks in advance

Regards,
Corina
Membre enregistré
102 messages
Popularité : +2 (2 votes)
Posté le 16 décembre 2016 - 13:55
Corina,

I can't help you with that. I don't use WD FTP functions (I use https://www.chilkatsoft.com/ instead). So I can't tell you if WD is using this specific fpw command.

You could:

a) send an email to WD support, ask this question
b) try to run FTPGet() and check ErrorInfo() if result is false
c) try the SFTP module from chilkatsoft

HTH
Sebastian

--
http://arnoldconsult.de
WinDev 21 with Oracle, WinDevMobile Android Apps and Motorola Windows CE Mobile Barcode Scanners, Python 3 with Oracle and MySQL
Posté le 16 décembre 2016 - 14:34
Hi Corina,

I have seen your requirement & details that you shared.

I would be glad to assist you , if you can add me on skype : cisin.arnold & we can discuss more about your requirement.

Waiting for your reply.

Best Regards,
Arnold Brown:)