Page 1 of 1
Upload a video to a server from ios with ftp
Posted: Tue Dec 03, 2013 8:42 pm
by Nana
Hi,
I am trying to upload a video from an iOS mobile device to my server via ftp. Is there anyone who accomplish to do this with a script which works correct?
If anyone can help me to do it right it would be very appreciated because all the scripts that I tried to write failed.
Thanks in advance.
Re: Upload a video to a server from ios with ftp
Posted: Tue Dec 03, 2013 8:45 pm
by Klaus
Hi Nana,
please post some of your scripts, that don't work.
Best
Klaus
Re: Upload a video to a server from ios with ftp
Posted: Wed Dec 04, 2013 12:32 am
by FourthWorld
If the video is intended for public use FTP may be okay and should work well from LiveCode.
But FTP is notoriously insecure, so it's good to heed Apple's advice on that:
FTP — Anonymous FTP is an acceptable way to download publicly-visible files. However, you should avoid any other use of FTP like the plague. Specifically, authenticated FTP will send your user's password in plaintext on the wire. This is not acceptable on the modern Internet. Moreover, all forms of FTP send the data in the clear, which is not appropriate for any user data.
https://developer.apple.com/library/ios ... index.html
Re: Upload a video to a server from ios with ftp
Posted: Thu Dec 05, 2013 3:44 pm
by Nana
I used the code below in order to upload images,text in my server.
Although i got message "Success" on both Android-iPhone devices, the image is uploaded to the server ONLY from the Android device and NOT from the iphone.
Also another message "Contacted" appears in Android device before "Success" message. That
means that the ftp server responded back?
What is going on with ftp on iOS?
"on touchEnd pid
mobilePickPhoto "library"
if it is "cancel" then exit touchEnd
answer "hello"
--put last image into URL theURL
put last image into URL ("
ftp://username:password@server.com/myimage.jpg")
answer "hola"
answer the result
if the result <>empty then
answer "url put failed:" && the result
--hide group "progress"
else
answer "success!"
end if
end touchEnd"