I'm looking to download a file from an FTP server as well as upload a file to an FTP server with Objective-C. Don't point me out to ConnectionKit, iPhone resources, or integration of Applescript code please.
If you want horrible integration of this you can use an NSTask to use with wget or ftp.
Related
My project I am currently working on will allow users to upload files to an apache FTP server and then a link will be generated for them to view the file.
Does anyone have code that works for them that they could share? Thanks
You can have a look to apple project SimpleFTPSample
you can find a complete project with code ...
https://developer.apple.com/library/ios/samplecode/SimpleFTPSample/Introduction/Intro.html
Does anyone know if there's a built in method/object I can use or an existing library? I have the host, post, username, password, path to the image (local) and destination path (remote). The sever suports 'sftp' and 'ftp', I don't think I can upload via http.
It's pretty easy. CFFTPSample (P.S. or it was SimpleFTPSample?) - demo app from XCode documentation. Run it, it does exactly you ask for.
Or read an article: Working with FTP Servers
For a new project I need to upload some html and jpeg files from iPhone to a FTP Server.
I examined Apples SimpleFTPSample and managed to upload a file.
But what is the correct way to upload more than one file? Do I have to repeat the whole process with creating input- and output streams with username and password for each file or is there a simpler way?
Thank you for any hint!
I have an iPad app that outputs a PDF file that needs to be uploaded to a remote server. What are my options here? Is there a sFTP or FTP implementation for iOS that would help me achieve this? Can it be done using other protocol?
Thanks!
FTP Client Wrapper in Objective-C for iPhone
ConnectionKit (might not be iOS compatible)
How about HTTP? http://www.cocoadev.com/index.pl?HTTPFileUpload
EDIT:
SCP using libssh2? http://www.libssh2.org/examples/scp_write.html
This on costs money: http://www.chilkatsoft.com/ssh-sftp-objc.asp
Haven't tried it myself yet.
(And a duplicate on SO: Upload file from iphone using SFTP protocol)
I am looking for a way to transfer files from a server to Amazon S3 bucket, without first downloading the files to my computer. All of the files I plan to transfer can be accessed publicly (e.g. http://something.com/file.ext). Everything I tried only allows me to directly upload files from my Mac to S3.
P.S. Although I have access to windows, a Mac app that can do this would be great... or maybe a browser-based solution :)
You can check out this PHP class (and a net tuts tutorial on it), it works well, I've been using it for a while now. It includes bucket creation, deletion, adding files and more. You can easily add files remotely from another server, or from the same server you're running it on.