Re: Up/Downloading a File to/from Website
Re: Up/Downloading a File to/from Website
- Subject: Re: Up/Downloading a File to/from Website
- From: Gordon Apple <email@hidden>
- Date: Mon, 30 Sep 2013 13:31:00 -0500
- Thread-topic: Up/Downloading a File to/from Website
Title: Re: Up/Downloading a File to/from Website
One thing I found out is that the Finder supposedly supports some types of connections, apparently FTP, FTPS, but not SFTP. Using “Connect To Server” I can get in using ftp://UserName:email@hidden, then hit “connect”. Once that is set up in the finder, it will show up as a volume in Finder and in open/save dialogs within my own code. The folders I previously created there show up, along with any separately uploaded files. However, just testing it in the Finder, it allows readonly download access. I have not been able to upload. Permissions at pair.com seem to be set so as to be writable, but so far no go. If this worked, I could just use it (for now) on the Mac. However, that doesn’t tell me how to get in and download from iOS. Could I do the latter just using an http “get”?
On 9/28/13 1:45 PM, "Jens Alfke" <email@hidden> wrote:
On Sep 28, 2013, at 11:35 AM, Gordon Apple <email@hidden> wrote:
> OK, I just got off the phone with them. FTP, SFTP, SSH.
IIRC there used to be some limited FTP support down in CFNetwork. But FTP is an old creaky protocol and best avoided. SFTP is a lot better; despite the name it’s not related to FTP at all. It’s basically file-access requests tunneled through SSH. I don’t know of any SFTP support in the OS, but there are probably some open-source libraries for it by now, so try searching around on Github or Bitbucket.
You don’t want to use SSH directly because it’ll involve sending shell commands (“ls”, “cp”, etc.) to a remote host. Giving your end users access to a shell on your server would be a bad idea — just imagine what someone could do with that if they hacked your app to send malicious commands.
—Jens
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Macnetworkprog mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden