Android Question FTP.UploadFileSet Not Working

Discussion in 'Android Questions' started by davelt99, Apr 15, 2015.

  1. davelt99

    davelt99 Member Licensed User

    My code is:
    sFTP.Initialize(Activity,Me,IP Address,UserID,Password,21,True,False)
    sFTP.SetCompletedUploadDialog(True,"Uploads Completed...")
    sFTP.SetProcessCompleteOn(True)

    sFTP.UploadFileSet("/uploads/",Array As String(File.DirRootExternal & "/7-150415110145.jpg",File.DirRootExternal & "/th7-150415110145.jpg"),False)

    Which causes the error:
    java.lang.ArrayIndexOutOfBoundsException: length=1; index=1

    I can't figure out what is wrong.
    I seem to be duplicating the example (except for wild cards) given for UploadFileSet.

    Any help would be greatly appreciated.

    Thank you,
     
  2. Erel

    Erel Administrator Staff Member Licensed User

    Please use [code]code here...[/code] tags when posting code.

    Which line causes this error?
     
  3. davelt99

    davelt99 Member Licensed User

    This line:

    [code]
    sFTP.UploadFileSet("/uploads/",Array As String(File.DirRootExternal & "/7-150415110145.jpg",File.DirRootExternal & "/th7-150415110145.jpg"),False)
    [/code],

    Both files exist and this seems to be correct per the example given in the description.
     
  4. davelt99

    davelt99 Member Licensed User


    Looks like the wildcard is necessary. All works well when it is included, not working when it is missing.
     
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice