FTP woes
Das Goravani
goravanis at gmail.com
Fri Apr 29 17:37:51 UTC 2022
NEVER MIND I got it to work.
The trick is to reduce the path to just the last directory on it, in my case.
Apparently it remembers the root directory of the user you pass in, and only needs the folders BEYOND that point in the path field.
And when you PUT a file the path has to include the file name you want it to have, maybe the same name as it has now.
Then it works.
> On Apr 29, 2022, at 1:23 PM, Das Goravani <goravanis at gmail.com> wrote:
>
>
> Hello,
>
> I’m playing with the sample library for doing FTP with the worker object.
>
> I have setup vsftpd on my server and made an FTP user with a specific folder.
>
> Then I try to use the Omnis FTP sample library to view that folder and possibly upload to it.
>
> When I do the Action List Directory with no path given it works. It shows the users directory in the Results List.
>
> But when I put in the path to that directory to get a list of files inside it, it doesn’t work. It doesn’t give an error number.
>
> When I try to upload a file to the users directory it gives error code 553 which translates to "bad file name", but the file is named paypal2.csv, a very small straightforward name.
>
> What am I doing wrong?
>
> When I put the credentials into an FTP client app on my Mac it works perfectly. The directory is good. The user is good.
>
> Does the sample library work? Do you know?
>
> I want to create a small FTP client app based on the sample library if possible.
>
> Thanks,
>
> Das Goravani
> North Carolina USA
More information about the omnisdev-en
mailing list