Images uploaded to FTP are all 1kb in size
Posted: Fri Apr 17, 2015 8:00 am
Hi all, a problem I'm having on iPad where images I have previously saved are uploading successfully to an FTP but all come out 1kb in size. I can see them saved on my iPad, all of them have a size of roughly 200-300kb. Here is my code:
Can anyone spot any problems with the way I've done it?
Code: Select all
set the defaultfolder to specialFolderPath("documents")
put the files into imageSearch
filter lines of imageSearch with "*_photo*"
repeat for each line x in imageSearch
put url "binfile:" & specialFolderPath("documents") &slash &x into tFile
put tFile into url ("ftp://" & sUsername & ":" & sPassword & "@" & sHost &slash &x)
if the result <> empty then
answer "url put failed:" && the result
else
delete tFile
end if
end repeat