service Mod with ftp

Smee

Well-Known Member
Licensed User
Longtime User
I am trying to use a service Mod to upload aand download files

The following works, i.e it uploads a file

B4X:
Sub Service_Start (StartingIntent As Intent)
   FTP.UploadFile(File.DirInternal & "/cats/" , "blank.jpg",False,"/" & "blank.jpg")
End Sub

But this does not

B4X:
Sub Service_Start (StartingIntent As Intent)
   UploadOrders
End Sub

Sub UploadOrders
   FTP.UploadFile(File.DirInternal & "/cats/" , "blank.jpg",False,"/testfolder/files/" & "blank.jpg")
End Sub

Can someone advise what i am doing wrong?

Thanks


Sorry, Ignore this, I had the paths wrong. It works fine now
\
 
Last edited:
Top