I need a simple short stack.
1 button. TAKE PICTURE and the picture should be automatic uploaded to a FTP Server. Is this possible can someone send me such a stack please?
thank you!
Is it possible - if yes, please tell me how
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
-
- Posts: 5
- Joined: Wed Feb 01, 2012 10:25 am
Re: Is it possible - if yes, please tell me how
Hi,
Yes, it is possible and I could make such a stack, but I have little time. I think you can use the put URL command with your FTP address:
Kind regards,
Mark
Yes, it is possible and I could make such a stack, but I have little time. I think you can use the put URL command with your FTP address:
Code: Select all
put urlEncode("username") into myUser
put urlEncode("password") into myPass
put myPictureData into url ("ftp://" & myUser & colon & myPass & "@ftp.domain.com")
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/book-livecode
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode
Re: Is it possible - if yes, please tell me how
Off the top of my head:pixelitodesign wrote:I need a simple short stack.
Code: Select all
on takePhoto
if the environment is "mobile" then
iPhonePickPhoto "rear camera", 600,800
if the result = "cancel" then
exit takePhoto
end if
ask "Name this photo"
put it into photoName
put image (the number of images) into url ("ftp://username:password@yourdomain.com/photos/"& photoName)
delete image (the number of images)
end if
end takePhoto
14" MacBook Pro
Former LiveCode developer.
Now recovering.
Former LiveCode developer.
Now recovering.