Android Question FTP.UploadFileSet not working with multiple file masks

davelt99

Member
Licensed User
Longtime User
I am looping through a data set from SQL Lite to get the image names that are to be uploaded to my server. All images are in File.DirRootExternal.

for i=0 to jCursor.rowCount-1
strImages=strImages & File.DirRootExternal & "/*" & imageName & ","
next
'' to remove final comma
strImages=strIMages.substring2(0,strIMages.length-1
FTP.Initialize(Activity,Me,serverIPaddress,userID,password,21,True,False)
FTP.SetCompletedUploadDialog(True,"Uploads Completed...")
FTP.SetProcessCompleteOn(True)
FTP.UploadFileSet("/uploads/",Array As String(strImages),false)

This returns an error: Invalid Directory Name. Aborting. Even though the files are located in the
File.DirRootExternal directory.

However, if I just use one file mask with the same syntax as above then all worked fine.

Until the error ErrnoException: Open Failed: EISDIR (Is a directory) started appearing every time.

I saw the forum response regarding clearing the cache but am not sure how to do this or if that is the actual cause.

Any thoughts would be greatly appreciated.

Thank you,
 

DonManfred

Expert
Licensed User
Longtime User
USE code tags when posting code!!!
You are member since 4 years. You should know it!
 
Upvote 0
Top