flash - ActionScript 3 FTP via NativeProcess -
i'm writing air application connects subversion repo, gets diff, , downloads them deploy website. i'm doing via nativeprocess runs '/usr/bin/svn' , execute necessary svn commands.
that's working uploading them website. can't quite figure out how upload files website via ftp terminal command using '/usr/bin/ftp'
does know how can accomplish uploading file ftp air?
edit: solved!
instead of using ftp switched curl using following command:
curl --ftp-create-dirs -u uname:pass -t /users/me/documents/subsync/tmp_109065090/sub/index.html ftp://ftp.mysite.net:21//web/content/sub/index.html
couple things note
- be sure add --ftp-create-dirs
- after port use double slash bypasses ftp's redirect (used when ftp account sub-account or in shared hosting environment).
- for ssl add --ftp-ssl curl command
Comments
Post a Comment