Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error on FTP UPDATFILE after sucessfull connect #1568

Closed
AJECavaleiro opened this issue May 3, 2024 · 1 comment
Closed

Error on FTP UPDATFILE after sucessfull connect #1568

AJECavaleiro opened this issue May 3, 2024 · 1 comment

Comments

@AJECavaleiro
Copy link

FTP Server OS: Unix / Windows / Embedded

FTP Server Type: Vsftpd / glFTPd / BFTPd / ProFTPD / Pure-FTPd / IBM CS FTP (z/OS, OS/400) / Windows CE / Windows Server IIS / Vax / VMS / OpenVMS / Tandem / HP NonStop

Client Computer OS: Windows / Ubuntu / Debian / Linux Mint / Arch Linux

FluentFTP Version: ?

Framework: .NET 2 / 3.5 / 4 / 5 / 6 / 7 / 8 / UWP / Xamarin / Mono

<write details about your bug report / feature request here>

Logs :


<paste VERBOSE logs here>

``

Try
    Dim CfgFTP As New FtpConfig
    With CfgFTP
        .EncryptionMode = FtpEncryptionMode.Explicit
        .SslProtocols = System.Security.Authentication.SslProtocols.Tls12
        .DataConnectionType = FtpDataConnectionType.PASV
        .ValidateAnyCertificate = True

    End With
    ' Crie um cliente FTPES
    Using ftp As New FtpClient(ftpServer, ftpUsername, ftpPassword, 2021)
        ' Configure o cliente para usar FTPES
        ftp.Config = CfgFTP

        ' Faça o upload do arquivo
        ftp.Connect()
        ftp.UploadFile(localFilePath, remoteFilePath, True, True, FtpVerify.Retry)

    End Using
    m = "OK"
Catch ex1 As FluentFTP.Exceptions.FtpException
    m = "Ocorreu um erro: " & ex1.Message

Catch ex As Exception
    m = "Ocorreu um erro: " & ex.Message
End Try
@FanDjango
Copy link
Collaborator

?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants