meganz / sdk

MEGA C++ SDK
BSD 2-Clause "Simplified" License
1.33k stars 510 forks source link

MegaApiClient #2595

Open Bluekey21 opened 2 years ago

Bluekey21 commented 2 years ago

We have an aplication in VB.NET where we use the API “MegaApiCliente” for uploading files, but since the last september 30, the app hasn’t work as usual, it means, isn’t uploading files to our account of Mega.

The code line is as follows:

Dim Cliente As New MegaApiClient() Cliente.Login("micorreo.com", "mypassword")

        Dim Nodos = Cliente.GetNodes()
        Dim Root As INode
        Dim Carpeta As INode

        If CarpetaNube <> "" Then
            Dim ExisteCarpeta As Boolean = Cliente.GetNodes().Any(Function(n) n.Name = CarpetaNube)

            If ExisteCarpeta = True Then
                Carpeta = Nodos.[Single](Function(n) n.Name = CarpetaNube)
            Else
                Root = Nodos.[Single](Function(n) n.Type = NodeType.Root)

                Carpeta = Cliente.CreateFolder(CarpetaNube, Root)
            End If
        Else
            Carpeta = Nodos.[Single](Function(n) n.Type = NodeType.Root)
        End If

        Dim Archivo As INode = Cliente.UploadFile(RutaArchivo, Carpeta)

        Dim DownloadUrl As Uri = Cliente.GetDownloadLink(Archivo)

        UrlDescarga = DownloadUrl.ToString

        Cliente.Logout()

The app it seems uploading files but there isn’t any messange error, our project was updated with the 1.9.0.0 API’s versión. So, one question, do we have to send any extra to our API?.

Please we will wait for your support, could you please send us any documentation?

And it still hangs, Where as same credentials works well to login in browser

Thank you in advance and best regards.