Giter VIP home page Giter VIP logo

Comments (10)

robinrodricks avatar robinrodricks commented on May 22, 2024

Thanks for reporting this. We'll work on a fix as soon as possible. For now best way is to DeleteFile() and the UploadFile()

from fluentftp.

daveaglick avatar daveaglick commented on May 22, 2024

I can confirm the same problem. Deleting before uploading seems to resolve the issue for me.

from fluentftp.

stefanouic avatar stefanouic commented on May 22, 2024

I can confirm the same problem.
I've tried the following versions: 16.2.0 and 16.2.1.
Now, instead of upload with overwrite I'm doing a delete upload (with no overwrite).

from fluentftp.

robinrodricks avatar robinrodricks commented on May 22, 2024

@Fjomp08 @stefanouic
I've implemented a fix for this in 16.2.3. Can you guys check and see if it works? I'm internally checking for the file existence before every upload, and deleting the file if it exists before uploading. I had earlier assumed that using OpenWrite would guarantee that the remote file is overwritten, but since all of you have problems with that I had to implement such a fix.

@daveaglick - Can you try uploading without DeleteFile() and see if all goes ok?

https://www.nuget.org/packages/FluentFTP/16.2.3

from fluentftp.

daveaglick avatar daveaglick commented on May 22, 2024

I'm still having trouble with this in 16.2.4. When I attempt to UploadFile() without first doing a FileExists() followed by a DeleteFile(), I get timeouts similar to #55.

from fluentftp.

robinrodricks avatar robinrodricks commented on May 22, 2024

@daveaglick - Thats very strange. Because I'm simply doing a FileExists() check internally then DeleteFile() if the file exists. No other code has been added/changed.

from fluentftp.

przemekwa avatar przemekwa commented on May 22, 2024

I having this trouble with 16.3.0.0 ( filename that already exists and the uploaded file is smaller than the existing one. )

Can You fix this, I need Your dll on production site?

from fluentftp.

robinrodricks avatar robinrodricks commented on May 22, 2024

@przemekwa - Can you ensure that checkFileExistance is true? If its true there should be no problem...

from fluentftp.

przemekwa avatar przemekwa commented on May 22, 2024

OK, I have false

client.UploadFile(fs, txtFilePath, true, true, false);

OK, I will check and I will back to you with feedback.

Thx.

from fluentftp.

robinrodricks avatar robinrodricks commented on May 22, 2024

I'm closing this. If you are still having this issue then add a comment and I'll reopen it.

from fluentftp.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.