Discussion:
FTP
Jim Payne
2017-08-25 20:38:42 UTC
Permalink
Dear Nuggers,

I could use a little help. I need to include limited FTP ability in my
software but have almost given up - and I'm pretty stubborn.

My third party stuff, FTPkit and FTPsuite died inglorious deaths. My
attempts to work through a shell instance work well enough, up to the
point that I send a command to GET a file. This always ends with a
permission denied error. (And yes, all the folder and file permissions
are fine.

Any hints will be appreciated greatly.

Jim Payne



To unsubscribe, email ***@xojo.com
Jon Ogden
2017-08-25 20:40:13 UTC
Permalink
I have an SFTP class that I wrote for my own use. It works pretty well. I don’t have Xojo up right now but I can send it to you if you like.
Post by Jim Payne
Dear Nuggers,
I could use a little help. I need to include limited FTP ability in my software but have almost given up - and I'm pretty stubborn.
My third party stuff, FTPkit and FTPsuite died inglorious deaths. My attempts to work through a shell instance work well enough, up to the point that I send a command to GET a file. This always ends with a permission denied error. (And yes, all the folder and file permissions are fine.
Any hints will be appreciated greatly.
Jim Payne
To unsubscribe, email ***@xojo.com
Jim Payne
2017-08-25 20:56:05 UTC
Permalink
Post by Jon Ogden
I have an SFTP class that I wrote for my own use. It works pretty well. I don’t have Xojo up right now but I can send it to you if you like.
Post by Jim Payne
Dear Nuggers,
I could use a little help. I need to include limited FTP ability in my software but have almost given up - and I'm pretty stubborn.
My third party stuff, FTPkit and FTPsuite died inglorious deaths. My attempts to work through a shell instance work well enough, up to the point that I send a command to GET a file. This always ends with a permission denied error. (And yes, all the folder and file permissions are fine.
Any hints will be appreciated greatly.
Jim Payne
Jon:

I would really, really appreciate a copy of your class.

Jim Payne
To unsubscribe, email ***@xojo.com
Jon Ogden
2017-08-26 03:42:39 UTC
Permalink
Here it is:

https://www.dropbox.com/s/45qqjt9lzpgg7mn/FTPClass.xojo_binary_project?dl=0 <https://www.dropbox.com/s/45qqjt9lzpgg7mn/FTPClass.xojo_binary_project?dl=0>

Please note that I do rely on MonkeyBread’s CURLSMBS class to do all the heavy lifting for FTP. The URLs for the FTP server are hard coded in this example - I note in comments where as I had set this up specifically to send data to my server and I’ve not done any work to make the class more portable. It would be pretty simple to add it as a property though. So that will need to be changed. Look for it in the “PerformUpload” method.

The class uses a custom thread class of mine to do all the FTP work in the background in a thread.

Hopefully this helps.

Jon
Post by Jim Payne
I have an SFTP class that I wrote for my own use. It works pretty well. I don’t have Xojo up right now but I can send it to you if you like.
Post by Jim Payne
Dear Nuggers,
I could use a little help. I need to include limited FTP ability in my software but have almost given up - and I'm pretty stubborn.
My third party stuff, FTPkit and FTPsuite died inglorious deaths. My attempts to work through a shell instance work well enough, up to the point that I send a command to GET a file. This always ends with a permission denied error. (And yes, all the folder and file permissions are fine.
Any hints will be appreciated greatly.
Jim Payne
I would really, really appreciate a copy of your class.
Jim Payne
To unsubscribe, email ***@xojo.com

Christian Schmitz
2017-08-25 20:43:35 UTC
Permalink
Post by Jim Payne
Dear Nuggers,
I could use a little help. I need to include limited FTP ability in my software but have almost given up - and I'm pretty stubborn.
My third party stuff, FTPkit and FTPsuite died inglorious deaths. My attempts to work through a shell instance work well enough, up to the point that I send a command to GET a file. This always ends with a permission denied error. (And yes, all the folder and file permissions are fine.
Well, GET is for HTTP and FTP commands are a bit different.

You could try MBS Plugins and the examples for the CURL plugin there.

Sincerely
Christian
--
Read our blog about news on our plugins:

http://www.mbsplugins.de/




To unsubscribe, email ***@xojo.com
Eduardo Gutierrez de O
2017-08-25 20:57:50 UTC
Permalink
Post by Jim Payne
Dear Nuggers,
I could use a little help. I need to include limited FTP ability in my software but have almost given up - and I'm pretty stubborn.
My third party stuff, FTPkit and FTPsuite died inglorious deaths. My attempts to work through a shell instance work well enough, up to the point that I send a command to GET a file. This always ends with a permission denied error. (And yes, all the folder and file permissions are fine.
Any hints will be appreciated greatly.
Hi.

Your FTP program may be running from a temporary location. From the shell FTP you might be able to change to a directory you can write to using "lcd" (for "local change directory").

Eduo


To unsubscribe, email ***@xojo.com
Continue reading on narkive:
Loading...