when i use the following code
every thing works file and i get the file
code 2:
when i use code 2 the file will never be uploaded and it will be deleted from the phone
any ideas why it is deleting the file without uploading it ?
B4X:
File.WriteString(File.DirInternal,"file.txt","hello")
FTP.Initialize("FTP","ftp.mysite.com",21,"user","pass")
FTP.UploadFile(File.DirInternal,"file.txt",False,"/htdocs/file.txt")
FTP.Close
Msgbox("done","")
every thing works file and i get the file
code 2:
B4X:
File.WriteString(File.DirInternal,"file.txt","hello")
FTP.Initialize("FTP","ftp.mysite.com",21,"user","pass")
FTP.UploadFile(File.DirInternal,"file.txt",False,"/htdocs/file.txt")
FTP.Close
File.Delete(File.DirInternal,"file.txt")
Msgbox("done","")
when i use code 2 the file will never be uploaded and it will be deleted from the phone
any ideas why it is deleting the file without uploading it ?