Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


    Cloudron Forum

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular

    Error alerts in the file manager

    Feature Requests
    2
    7
    120
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • mehdi
      mehdi App Dev last edited by

      Hello !

      I just noticed that, in the file manager, when uploading multiple files at once, if there is an error during the upload there is basically no way to know without checking the console.

      I think an alert modal to warn of the error would be appropriate here. Just changing the text in the upload progress modal to "An error happened" with an "OK" button would do.

      Right now, it's quite annoying because it fails pretty often, and it's pretty much impossible to notice. It bit me once or twice.

      (btw, is it just me, or do uploads of multiple files often fail for no apparent reason?)

      1 Reply Last reply Reply Quote 0
      • nebulon
        nebulon Staff last edited by

        Is there any pattern on which files fail? Like special names or sizes?

        mehdi 1 Reply Last reply Reply Quote 0
        • mehdi
          mehdi App Dev @nebulon last edited by

          @nebulon Nope. It just seems that when I upload a bunch of files, like > 10 at a time, each files has a small chance of failing. I retry, it works.

          1 Reply Last reply Reply Quote 0
          • mehdi
            mehdi App Dev last edited by

            Honestly, the failures are a bit annoying, but the main issue here is the lack of error message. It's much more problematic in my opinion.

            1 Reply Last reply Reply Quote 0
            • mehdi
              mehdi App Dev last edited by

              (FYI, the request just seems to time-out in the network tab of dev tools. The error in the console is:

              Object { name: "ClientError", statusCode: "Request cancelled by browser", message: "Empty message or object" }
              filemanager.js:326
              

              )

              1 Reply Last reply Reply Quote 0
              • nebulon
                nebulon Staff last edited by

                I pushed a small fix for this. It now just states there is an error without further information. A better fix will come later, once I know what the best strategy is to display the error and how a user should succeed (like a retry button or such)

                mehdi 1 Reply Last reply Reply Quote 3
                • mehdi
                  mehdi App Dev @nebulon last edited by

                  @nebulon Amazing, thanks ! Yeah, a better solution would be welcome on a longer term. But even just showing that there is an error is an enormous enhancement. I just had to go through a good dozen directories to check that each upload worked correctly ^^

                  If you need any help / tests to further debug the underlying error, don't hesitate to ask !

                  Thanks again for the amazing responsiveness 🙂

                  1 Reply Last reply Reply Quote 1
                  • First post
                    Last post
                  Powered by NodeBB