FTP

Hi,
Am New to Xojo…Kindly help me out from the below issue

I need to transfer a text file on my local computer to an FTP site & my research has led me to MBS CURL as an option.
Please advise how to use the MBS CURL Plugins
I have downloaded the MBS CURL Plugins

While try to run the example project “CURLS ftp file upload” which is available in MBS CURL Plugins Examples, It through the error.

What’s the error?
What OS are you targeting? On OS X at least ‘curl’ is installed by default so you could also call ‘curl’ from a shell to upload the file if you don’t want to use a plug-in (but this is up to you) :slight_smile:

Examples for curl: http://linux.byexamples.com/archives/320/using-curl-to-access-ftp-server/

Am Using Windows 7

Windows7

The MBS CURL Plugin with CURLSMBS class includes the CURL, SSL and SSH libraries.
No need for providing your own DLLs.

and our plugin comes with a simple FTP upload example:
https://www.monkeybreadsoftware.net/example-curl-ftp-curlsftpupload.shtml

Thanks Christian…
I have using Windows 7 & I have download the MBS CURL Plugins.

MBS CURL Plugins contains the 3 folder
Documentation , Examples , Plugins.

Then I have try to run the example project —> CURL - FTP - “CURLS ftp file upload”. But Xojo through the error as

d.optionURL = url.text ----> UploadCURL has no member named “OptionalURL”
CURLSMBS ----> Cant find a type with this name
Function RestartRead() As Boolean -> You cannot implement a nonexistent event

did you copy the plugin file into Xojo’s plugins folder and restart Xojo?

Yes… I just copy the plugins files and paste the same into Xojo’s plugins folder.
Then I start the Xojo…

But Still i received the same errors…

Now the example file was Running… Thanks…

Good.

One more clarification this…

I need to transfer a text file on my local computer to an FTP site. I have Run the “CURLS ftp file upload” example file.
In this file mentioned as the FTP URL format as below:

Enter a ftp or ftps URL in the format: ftp://name:password@domain.com/folder/file

I entered the URL as ftp://ews:1234@192.168.1.164/var/www/html/ews/xojo

But the selected file was not transferred.
Help me out form this…

Does the user ‘ews’ have Write permission to the folder /var/www/html/ews/xojo?
What’s the error message?

I would always prefer to use OptionUserName/OptionPassword for the credentials.

What do debug messages tell you?

so before Perform call there:

d.OptionVerbose = true d.CollectDebugData = true
and after transfer check debug data

 dim DebugMessages as string = d.DebugData 

you should see messages including an error message.

[quote=217339:@Albin Kiland]Does the user ‘ews’ have Write permission to the folder /var/www/html/ews/xojo?
What’s the error message?[/quote]

Yes, ews have permission for write.

[quote=217340:@Christian Schmitz]I would always prefer to use OptionUserName/OptionPassword for the credentials.

What do debug messages tell you?[/quote]

As you said i change my code as below

d.OptionURL="ftp://192.168.1.164/var/www/html/ews/xojo
d.OptionUsername = “ews”
d.OptionPassword = “1234”
d.OptionPort = 22

But Still the selected file was not transferred.

[quote=217341:@Christian Schmitz]so before Perform call there:

d.OptionVerbose = true d.CollectDebugData = true
and after transfer check debug data

 dim DebugMessages as string = d.DebugData 

you should see messages including an error message.[/quote]

While call above mentioned code, Xojo through the error as “NilobjectExpection”

Maybe you email me your test project with login?

So I can debug it?

Ya… Give me your email id

Send via PM.