iOS Question FTP Transfer Mode?

Discussion in 'iOS Questions' started by yejian, Feb 2, 2015.

  1. yejian

    yejian Member Licensed User

    FTP.SendCommand("binary","")
    invalid?
     
  2. Erel

    Erel Administrator Staff Member Licensed User

  3. yejian

    yejian Member Licensed User

    Why do I upload files to the server DB damage?
     
  4. Erel

    Erel Administrator Staff Member Licensed User

    Hard to say. What is the difference between the server file and the local file?
     
  5. yejian

    yejian Member Licensed User

    local file size 12K
    Uploaded to the server only 4K



    FTP.Initialize("FTPCommand","*******",21,"***","***")

    FTP.UploadFile(File.DirDocuments,"Ordine.db",True,"/Ordine.db")

    Sub FTPCommand_UploadCompleted (ServerPath As String, Success As Boolean)
    If Success Then
    hd.ProgressDialogHide
    Msgbox("ok!","FTP")
    Else
    Msgbox("FTP error!","FTP error")
    End If
    End Sub
    Prompt ok
     
  6. Erel

    Erel Administrator Staff Member Licensed User

    Note that you should move hd.ProgressDialogHide out of the condition block.

    I tested FTP with several FTP servers and it works properly. If you like send me the required details and I can test it with your FTP server.
     
  7. Jean Weets

    Jean Weets Member Licensed User

    I have the same problem.
    Download files = ok
    Uploud file often only 4344 bytes. never completely. No error message. :|
     
  8. Erel

    Erel Administrator Staff Member Licensed User

    Is the UploadCompleted event raised?
     
  9. Jean Weets

    Jean Weets Member Licensed User

    In UploadCompleted give Succes = 1 (true)
     
  10. Erel

    Erel Administrator Staff Member Licensed User

    This means that from the device side everything was ok.

    Are you sure that the local file is "complete"?
     
  11. Jean Weets

    Jean Weets Member Licensed User

    I tried it again and be sure that the files are complete on the device.
     
  12. Erel

    Erel Administrator Staff Member Licensed User

    Call FTP.List and check the size of the uploaded file.
     
  13. Jean Weets

    Jean Weets Member Licensed User

    Why should I do that? I see what files are on the server with FileZilla.

    But I have introduced the function FTP.List and the uploaded files are never complete.
     
  14. Erel

    Erel Administrator Staff Member Licensed User

    To try to debug this issue.

    I tested this library with several FTP servers and it worked properly. If you like you can privately send me your FTP server details and I'll check it.
     
  15. Erel

    Erel Administrator Staff Member Licensed User

  16. yejian

    yejian Member Licensed User

  17. Jean Weets

    Jean Weets Member Licensed User

    Great ! Now it works perfectly :)
    Thanks Erel ;)
     
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice