FTP from iOS but getting tsneterr: (67) Access denied: 530
Charles Warwick
charles at techstrategies.com.au
Thu May 25 21:36:24 EDT 2017
Hi John,
Certain characters in usernames and passwords need to be URL encoded if you want to include them in a URL string. The @ character is one of them.
Try something like his:
put urlencode("autoimage at jdoe.on-rev.com") into tUser
put urlencode("xxxxx") into tPass
put the last image into URL ("ftp://"&tUser&":"&tPass&"@jdoe.on-rev.com/autoimage/images/newimage.jpg”)
Cheers,
Charles
-- Sent from my iPhone
On 26 May 2017 at 08:32:55 AEST, JOHN PATTEN via use-livecode <use-livecode at lists.runrev.com> wrote:
Hi All,
I’m trying to ftp and image from the photo gallery on iOS to my on-rev account. I’m using the example:
------------
on mouseUp
mobilepickphoto “library"
--upload to FTP
put the last image into url ("ftp://autoimage@jdoe.on-rev.com:xxxxxxxxx@jdoe.on-rev.com/autoimage/images/newimage.jpg”)
--Informs of successful or unsuccessful upload
if the result is not empty then
answer "url put failed:" && the result
else
answer "success!”
end if
end mouseUp
——————
It is throwing and an error, tsnetterr:(67) Access Denied: 530.
I can use Fetch (a mac FTP client) just fine with the same credentials and upload an image with no problem. I don’t even have to give Fetch the full ftp directory, just the host.
What am I missing?
Thank you!
John Patten
SUSD
_______________________________________________
use-livecode mailing list
use-livecode at lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode
More information about the use-livecode
mailing list