file upload via http instead of FTP

Moderators: Klaus, FourthWorld, heatherlaine, kevinmiller, robinmiller

Post Reply
MadManSoft
Posts: 33
Joined: Fri Apr 12, 2013 9:15 pm

file upload via http instead of FTP

Post by MadManSoft » Fri Oct 25, 2013 7:08 pm

I'm looking an example of uploading a file from an iOS device via http instead of ftp as is described/shown in the App Academy video.

I think I can do it via the post command via a multi-part form that works under iOS, but am unsure how to structure the code. A specific example would be great!

Not using PHP, but can translate that into my back end (ColdFusion).

Thanks in advance!

Mark
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 5118
Joined: Thu Feb 23, 2006 9:24 pm
Contact:

Re: file upload via http instead of FTP

Post by Mark » Wed Oct 30, 2013 11:33 pm

Hi,

According to the LC dictionary, libUrlMultipartFormData is not available for iOS and Android. That means that you have to figure out a way with a simple post command. Perhaps something with a repeat loop that uploads indexed pieces of data that are put together by your PHP script. Ugly and slow.

Kind regards,

Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/livecodebook

Post Reply

Return to “Summer School 2013”