Page 1 of 1
Is it possible - if yes, please tell me how
Posted: Sat Feb 18, 2012 3:51 pm
by pixelitodesign
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!
Re: Is it possible - if yes, please tell me how
Posted: Sat Feb 18, 2012 8:29 pm
by Mark
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:
Code: Select all
put urlEncode("username") into myUser
put urlEncode("password") into myPass
put myPictureData into url ("ftp://" & myUser & colon & myPass & "@ftp.domain.com")
Kind regards,
Mark
Re: Is it possible - if yes, please tell me how
Posted: Sun Feb 19, 2012 1:21 pm
by Jellicle
pixelitodesign wrote:I need a simple short stack.
Off the top of my head:
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
Don't forget to create the directory "photos" on your ftp server, and set the right permissions on that directory.