Hi Everyone, Uploading a file via "PUT URL" should work on Android devices, however, when writing an example script, I came across a bug that you might be experiencing.
The following script works perfectly on iOS but fails on Android with the mentioned Java.io.ioexception error.
Code: Select all
   put "test@test.on-rev.com" into sUsername
   put "Aasecurepassword" into sPassword
   put "ftp.test.on-rev.com" into sHost
   put "test" into sName
   
   mobilePickPhoto "library"
    if it is "cancel" then
      exit mouseUp
   end if
   
   put urlEncode(sHost) into sHost
   put urlEncode(sUsername) into sUsername
   put urlEncode(sPassword) into sPassword
   put urlEncode(sName) into sName
   
   export the last image to file (specialFolderPath("documents") &slash&"newimage.png") as PNG
   put url("binfile:" & specialFolderPath("documents") & "/newimage.png") into tImageUpload 
   --answer ("ftp://"&sUsername&":"&sPassword&"@"&sHost & slash &sName&".png")
   put tImageUpload into url ("ftp://"&sUsername&":"&sPassword&"@"&sHost & slash &sName&".png")
   
   if the result <>empty then
      answer "url put failed:" && the result
   else
      answer "success!"
   end if
I have changes the username/password above to generic values 
 
With this error occurring, I spoke to the dev team and it would seem that usernames with "@" in them fail on Android (and possibly other non alphanumeric characters). I then tried my script with a simple alphanumeric username and pass and the upload was successful.
We are now aware of this issue and have created a bug report on it with out Quality Control Team. 
http://quality.runrev.com/show_bug.cgi?id=11779
Hopefully we will have a quick resolution for this.
Kind Regards,
Neil Roger
--
RunRev Support Team ~ 
http://www.runrev.com
-