I am using mobilepickphoto "library" and am getting this error on an iPhone (have not tested it on an android):
Upload failed: tsneterr: (9) Server denied you to change to the given directory
Code: Select all
set the name of the templateImage to "imageUpload"
if the environment is "mobile" then
mobilepickphoto "library"
answer "imageSelected"
else
set the cursor to watch
answer file "Please select an image file"
put url ("binfile:" & it) into image "myimage"
end if
if the result is empty then
put the text of image "imageUpload" into tImagetoUpload
answer "imageDataGathered"
put tImagetoUpload into url("ftp://ftpaddress and filename.png")
if the result is not empty then
answer "Upload failed:" && the result
Code: Select all
So...either my code is wrong...or there is a bug. Can you tell me if the code for sending an image to my server is correct? Thanks!