Sub imgChooser_Result(Success As Boolean, Dir As String, FileName As String)
'Try
TempPhotoName = RandomString(16,True,True,True,"") & ".jpg"
File.Copy(Dir ,FileName,File.DirRootExternal ,TempPhotoName )
FTP.UploadFile(File.DirRootExternal, TempPhotoName , True, TempPhotoName)
This code send file to server but not all file size (172 kb instead 500kb). I think its about copying image take a while and ftp is not waiting for this.
How can i fix it ? is there way send file via ftp without copy to File.DirRootExternal or handle when file copy completed.