Skip to content

Unable to complete upload #69

Closed
Closed

Description

@vandergriffchris7-prog

I have a Raspberry Pi 3B that's running an sd card loaded with a Kiwix image that includes this "File Manager" app, but I can't figure out how to upload files to it so other devices on the network can access them, I can't find any instructions anywhere.

Activity

  1. added
    question
    on Sep 7, 2025
  2. rgaudin commented on Sep 8, 2025

    @rgaudin
    Member

    Hi @vandergriffchris7-prog, the app linked in the dashboard is the end-user one which is read-only.
    To add content to it, you need to append /admin/?p= to the app URL and enter the admin credentials. Credentials are admin / admin-password on the standard images.
    Once logged-in, you can upload arbitrary files.

  3. vandergriffchris7-prog commented on Sep 9, 2025

    @vandergriffchris7-prog
    Author

    I have no idea what that means, I had to Google how to load the image onto an sd card to make this thing. Do I need to log into it like it's a router I'm changing the settings on?

  4. rgaudin commented on Sep 9, 2025

    @rgaudin
    Member

    @vandergriffchris7-prog when you use the File Manager, you're likely connected to http://resources.kiwix.hotspot/
    To upload files, you would instead go to http://resources.kiwix.hotspot/admin/?p=

  5. vandergriffchris7-prog commented on Sep 9, 2025

    @vandergriffchris7-prog
    Author

    Okay, I did that, logged in and all, it seems like I'm uploading files, but I can't seem to find a way to make them actually upload and stay there. I made a folder in the app for some PDFs, entered the folder, hit the upload button, dragged my files over, they gave me a progress bar like they were uploading, but then they're just NOT staying there. I don't know if I'm missing a "save" button or something, but moving off of or refreshing the page makes them all disappear. Is there somewhere with clear instructions or a user guide for that particular app?

  6. transferred this issue fromoffspot/overviewon Sep 9, 2025
  7. changed the title [-]I'm just trying to figure out how to use the File Manager app[/-] [+]Unable to complete upload[/+] on Sep 9, 2025
  8. rgaudin commented on Sep 9, 2025

    @rgaudin
    Member

    Thank you @vandergriffchris7-prog for the detail ; I could reproduce the issue with a larger file. There's no short term solution unfortunately.

    @kelson42 I identified a side issue: chunks are stored inside the container fs instead of the instructed mounted path (that's because it's lighttpd doing so before passing them to PHP). We could fix that by setting server.upload-dirs in lighttpd.conf.

    The broader issue is the lack of feedback. The server app only logs successful chunk uploads.
    On the client side, there's no feedback. Successful chunk uploads do update the progressbar but that's it.
    Failing chunk upload is visible in the console (NS_BINDING_ABORTED) and that's it. Failure (or this kind at least) is most likely unexpected and not handled.

  9. added
    bug
    and removed
    question
    on Sep 9, 2025
  10. 8 remaining items

  11. vandergriffchris7-prog commented on Sep 19, 2025

    @vandergriffchris7-prog
    Author

    I would be happy to download a corrected image that actually includes a fully working version of the file manager application. The file manager app was a big draw to the system for my off-grid "network".

  12. kelson42 commented on Sep 21, 2025

    @kelson42
    Member

    @vandergriffchris7-prog We will work on this to solve this issue, but this will take around 7 weeks until we start this effort. Thank you in advance for your patience.

  13. rgaudin commented on Nov 26, 2025

    @rgaudin
    Member

    I realize we didn't come back to this issue ; here's the recap:

    • WiFi on the hotspot is 802.11n on channel 11.
    • When talking about file transfers, it's very slow (not an issue for browsing or playing videos though).
    • When used with many nearby networks and generally many WiFi devices, there's a lot of interference (participates to slowness).
    • Our File Manager app uses tinyfilemanager (not using outdated offline branch but doing similar in Dockerfile)
    • Multiple reports of probably uploaded? files that are not visible after upload.
    • UI/UX doesn't work well in our case: Upload UI: a completed upload, an in-progress upload and a pending upload (not started) Image
      • hard to tell (especially when you have no experience with the tool) what's going on: is it uploaded, uploading, not uploading? It gets a bit more clear only once a significant part of the file has been uploaded and it looks like a progress bar.
      • the sole progress indicator is the bar, on large file (and/or slow connection), it seems to be stuck
      • errors are not always reported:
        • NS_ERROR_CONNECTION_REFUSED triggers an immediately disapearing toast, thumbnail has an X overlay and hover on the thumbnail shows a red error message.
        • NS_BINDING_ABORTED does not trigger anything. Stops
    • when reported, errored uploads doesn't stand out
      • A reported error Image
      • Hover on a reported error Image

    I see three interconnected issues:

    • Slowness of transfers.
    • Frequency of issues in transfers (increased by slowness)
    • Inappropriate User feedback

    Speed

    We have now implemented two WiFi profiles in the hotspot:

    • Coverage one which is almost identical to the previous one. There's nothing we can do about it.
    • Performance one which has a smaller coverage area but is a lot faster and more stable.

    Here are actual transfer speeds with both profile, with a single user connected. Duration are extrapolated from tests (35GiB and 8GiB)

    Profile Average actual speed 1GiB duration 100GiB duration
    Coverage 816 KiB/s 21 minutes and 25 seconds 1 day, 11 hours and 41 minutes
    Perf 9.6 MiB/s 1 minute and 46 seconds 2 hours, 57 minutes and 46 seconds

    The sole solution for better speed is: planning those when there are fewer users or, way better, switching to Performance profile.

    Large file transfers would likely not happen everyday so a Hotspot needing coverage profile could exceptionally switch to Perf for some transfers and switch back after.

    Frequency of issues

    On Performance profile, this does not happen because it's a lot more reliable both because of how it works and also because there are less interference.

    For those on Coverage profile, we could tweak the upload settings to:

    • reduce chunk size. It's currently at 2MB. In coverage speed test above some chunks took up to 27s to transfer (72KiB/s)
    • increase (or disable?) timeout (for chunk). Currently at 2mn.
    • increase number of retries (for chunk). Currently at 3.
    • report/investigate upstream to:
      • add backoff mechanism so retries are more useful
      • detect/report those cases like NS_BINDING_ABORTING

    UI Feedback

    Note

    tinyfilemanager is using dropzone.js client side with its config (chunks, 2MB, 2mn timeout, 3 retries, single parallel upload) but the UI is the stock UI.
    We're using the latest stable version. New version in beta doesn't mention any fix.

    There are several UI/UX things we could do, depending on how much effort we want to invest:

    • disable thumbnails? When uploading, images are represented via a thumbnail of their content. It might help when uploading multiple files but it's also a distraction.
    • colored replacement icons for error and success overlay. Actual ones are lighter with less opacity➡️ Image Image
    • keep success overlay permanently instead of short animation
    • display amount transfered (initialy in bytes/KB then in percentage?) instead of just the filling bar
    • display speed and/or ETA

    @kelson42 @anupulu @siemsie please advise.

  14. anupulu commented on Nov 27, 2025

    @anupulu

    @rgaudin

    Thank you for writing it all down.

    If I understood correctly, on Performance profile the issue doesn't happen (or is less likely to happen)?
    Would it then make sense just to inform users to change to that profile, if the file size is above a certain size?

    We could show, for example, something like: "For large files, switch to the Performance WiFi profile in your hotspot settings for faster, more reliable uploads" in the UI.

    Or, based on what you wrote, would it actually be able to switch automatically, temporarily, without user action?

    And: If we do that, wouldn't it then mean that we don't necessarily need to do any of the UI/UX improvements or tweaks on the Coverage profile?

  15. rgaudin commented on Nov 27, 2025

    @rgaudin
    Member

    If I understood correctly, on Performance profile the issue doesn't happen (or is less likely to happen)?

    It doesn't happen under normal conditions.

    Would it then make sense just to inform users to change to that profile, if the file size is above a certain size?

    It could. Given it's not systematic and more linked to radio environment, I'd show such a suggestion upon failure to upload.

    Or, based on what you wrote, would it actually be able to switch automatically, temporarily, without user action?

    Not possible.

    And: If we do that, wouldn't it then mean that we don't necessarily need to do any of the UI/UX improvements or tweaks on the Coverage profile?

    Errors can still happen on Perf profile. Some people won't be able to switch profile. I consider the current UX deceptive in some cases. Those should be done anyway IMO.

  16. anupulu commented on Nov 27, 2025

    @anupulu

    Ok. In that case maybe it could be done in steps?

    First, implement showing the suggestion to switch profile after a failed upload
    -> release
    -> then monitor user feedback to see how often it still happens after that
    -> then decide whether to move on to fixing the UI/UX and reduce chunk size etc.

  17. added a commit that references this issue on Nov 29, 2025
  18. rgaudin commented on Nov 29, 2025

    @rgaudin
    Member

    FYI, as I was refreshing base images, I've added a couple of those changes:

    • on detected error, the icon is not red ; very visible.
    • on success, the icon stays visible and is green.
  19. kelson42 commented on Nov 30, 2025

    @kelson42
    Member

    After discussing the matter with @rgaudin, I woukd recommend to:

    • Close the effort with the current solution because:
      • Assumed Good enough
      • Current solution is not substainable and won't last long
      • We have already invested quite a bit of our time
      • We need more/further user feedback to better know in which direction to go
      • We need, in general to make a release, and move forward

    #64 should be treated at a later time.

  20. gstrauss commented on Dec 8, 2025

    @gstrauss

    @kelson42 I identified a side issue: chunks are stored inside the container fs instead of the instructed mounted path (that's because it's lighttpd doing so before passing them to PHP). We could fix that by setting server.upload-dirs in lighttpd.conf.

    Modifying server.upload-dirs can be one good solution.

    If disk space is an issue for uploading large files, then see also lighttpd.conf options
    server.stream-request-body
    server.stream-response-body

  21. kelson42 commented on Dec 9, 2025

    @kelson42
    Member

    @rgaudin Any reason we keep this issue open, considering we have implemented a bunch of things to fix this issue already?

  22. vandergriffchris7-prog commented on Dec 9, 2025

    @vandergriffchris7-prog
    Author

    Well, you say that you've solved the issue and implemented a bunch of things, but I'm the paying customer that originally reported this bug, and I've seen zero change. I still don't have a reliable way to upload things to the file manager, and if you all think there's a workaround, it hasn't been explained to me in plain English.

  23. rgaudin commented on Dec 9, 2025

    @rgaudin
    Member

    @vandergriffchris7-prog, we are currently releasing a new version. Please send an email to contact@kiwix.org with your purchase confirmation email (so we have the date and the variant you're using). We'll send you a link to download the new image version for you to install.

  24. unpinned this issue on Sep 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bug

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions