I've been trying to upload 3 files using FTP (iNet 1.2) and no matter what, it only uploads the first file and not the other two. This code works fine in my Android app. If I comment out the FTP code for the first file, the second file uploads but not the third, and so on. Here's the code for uploading the first file:
If File.Exists(filepath, filename) Then
ftp_dest = "/public_html/uploads/" & filename
FTP.UploadFile(filepath, filename, False, ftp_dest)
Log(ftp_dest)
Else
Msgbox("No data to upload (file not found)", "Error")
End If
After seeing this post: https://www.b4x.com/android/forum/threads/ftp-works-only-for-the-first-file.48343/#post-300615
I realize I'm having the same problem. How can I get FTP to work on my iPhone?
If File.Exists(filepath, filename) Then
ftp_dest = "/public_html/uploads/" & filename
FTP.UploadFile(filepath, filename, False, ftp_dest)
Log(ftp_dest)
Else
Msgbox("No data to upload (file not found)", "Error")
End If
After seeing this post: https://www.b4x.com/android/forum/threads/ftp-works-only-for-the-first-file.48343/#post-300615
I realize I'm having the same problem. How can I get FTP to work on my iPhone?