Skip to content

[Suggestion] Progress for downloading/uploading #1095

Closed

Description

@chrisjlocke

Details for the issue

I'm not sure whats possible, so just throwing this out as a suggestion.
Would it be possible to show how many KB/MB have been down/uploaded so far, to give some sort of progress on where the download/upload is?

Currently, the dialog gives no indication.

image

I know with my own tinkerings with network traffic, its not always possible to get that info.

Edit: Oh, I see the upload already does that...

image

Useful extra information

I'm opening this issue because:

  • DB4S is crashing
  • DB4S has a bug
  • DB4S needs a feature
  • DB4S has another problem

I'm using DB4S on:

  • Windows: ( version: ___ )
  • Linux: ( distro: ___ )
  • Mac OS: ( version: ___ )
  • Other: ___

I'm using DB4S version:

  • 3.10.0
  • 3.10.0-beta*
  • 3.9.1
  • Other: ___

I have also:

Activity

  1. justinclift commented on Aug 21, 2017

    @justinclift
    Member

    Yep, it definitely should be possible. Interestingly, the code for displaying the progress dialog is the same for both upload and download.

    I think the problem is that the server isn't sending the filesize to DB4S when the download kicks off, so DB4S doesn't know where the end is until it hits it.

    Kind of thinking I should be able to get that fixed today, in which case the download progress bar (hopefully) should just start working. 😄

  2. justinclift commented on Aug 21, 2017

    @justinclift
    Member

    Yep, it was a simple fix. sqlitebrowser/dbhub.io@6abd350

    The download just needed a Content-Length header sent at the start. Download progress bars are working (both Firefox and DB4S) now. Well, at least when testing just now anyway. 😉

  3. justinclift commented on Aug 25, 2017

    @justinclift
    Member

    @chrisjlocke Reminder ping. Hoping you have a chance to verify this. 😄

  4. chrisjlocke commented on Aug 25, 2017

    @chrisjlocke
    MemberAuthor

    I'll try again. 👍

  5. justinclift commented on Sep 1, 2017

    @justinclift
    Member

    @chrisjlocke Reminder ping. 😄

  6. chrisjlocke commented on Sep 1, 2017

    @chrisjlocke
    MemberAuthor

    Aah yes, I was looking at this the other day when I came across the 'multiple download' issue, so forgot to update this one.

    Both are working well, so I can close this.

    image

    The pedant in me wants to remove the closing "." from the end of the filename though... 😉

  7. MKleusberg commented on Sep 1, 2017

    @MKleusberg
    Member

    Just removed the closing "." from the upload and download dialog 😉

  8. justinclift commented on Sep 1, 2017

    @justinclift
    Member

    Oh, related to this, the upload progress bar doesn't show correctly with larger size files. Instead the whole dialog just flickers. The upload itself works though.

    @MKleusberg If you're wanting to take a look, you don't need to upload the whole file. It does the flickering thing right from the start. Oh, I'll need to update the server so it doesn't apply the upload limits to you. Will get that done in a sec anyway. 😄

  9. justinclift commented on Sep 1, 2017

    @justinclift
    Member

    k, upload limits via DB4S shouldn't affect yourselves now. It's done via dodgy hot patch though, instead of anything proper... so might need to be reapplied again later until something better is put in place. eg "Admin accounts" or similar as @chrisjlocke suggested the other day

  10. justinclift commented on Sep 1, 2017

    @justinclift
    Member

    @MKleusberg Ahhh... "mtest3". I whitelisted the wrong username. 1 min. 😄

  11. MKleusberg commented on Sep 1, 2017

    @MKleusberg
    Member

    No problem 😄

  12. justinclift commented on Sep 1, 2017

    @justinclift
    Member

    k, should be good now. 😄

  13. 2 remaining items

  14. justinclift commented on Sep 1, 2017

    @justinclift
    Member

    I haven't looked further to figure out where the threshold for mucking up is.

  15. MKleusberg commented on Sep 1, 2017

    @MKleusberg
    Member

    Ok, give me some time for this. I'm downloading the 2.9GB file now 😉

  16. justinclift commented on Sep 1, 2017

    @justinclift
    Member

    Maybe generate your own? 😄

        https://github.com/sqlitebrowser/sqlitedatagen

    You'd need Go installed, but the generation itself is reasonably quick. ~5 seconds per 80MB on this old Linux desktop.

  17. MKleusberg commented on Sep 1, 2017

    @MKleusberg
    Member

    Yeah thought about that too but figured that it's faster to just download your file because it's just one click and I can do other stuff while it's loading 😉

  18. chrisjlocke commented on Sep 1, 2017

    @chrisjlocke
    MemberAuthor

    image

    "Its OK - just Martin downloading those large test files again..."

  19. justinclift commented on Sep 1, 2017

    @justinclift
    Member

    Heh Heh Heh 😄

    Yeah, measurements/monitoring hasn't yet been done on the server while larger sized files are downloaded by DB4S. Uploads were pretty relaxed (3% of one cpu) during the 2.9GB upload, mostly due to buffer management I'm guessing. Seems ok for now, so not a priority to look at optimising (yet). 😉

  20. MKleusberg commented on Sep 1, 2017

    @MKleusberg
    Member

    I don't get any flickering even with the 2.9GB file. But the progress bar isn't working properly either. I assume it's because the progress dialog takes int values and if those are 32bit wide it will overflow for file sizes greater than 2^32/2 Byte, i.e. 2GB. I'll push a fix for that in a second 😄

  21. MKleusberg commented on Sep 1, 2017

    @MKleusberg
    Member

    Ok can you test again with the latest commit applied? In theory the progress dialog should work fine now 😉

  22. justinclift commented on Sep 1, 2017

    @justinclift
    Member

    Sure, gimme 5. 😄

  23. justinclift commented on Sep 1, 2017

    @justinclift
    Member

    Yep, this is working smoothly now too. Nicely shown, no flickering, smooth updates. Awesome @MKleusberg!

  24. MKleusberg commented on Sep 1, 2017

    @MKleusberg
    Member

    Awesome 😄 Thanks for testing!

  25. added this to the 3.10.1 - Gaaah! milestone on Sep 2, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions