No More Posting New Topics!

If you have a question or an issue, please start a thread in our Github Discussions Forum.
This forum is closed for new threads/ topics.

Navigation

    Quasar Framework

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

    [solved] How to fire event when user cancels upload

    Help
    2
    5
    168
    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.
    • beatscribe
      beatscribe last edited by beatscribe

      When uploading a really huge file, there is an X in q-uploader to allow you to cancel. When you do so, the @failed event fires, which is great, but I have no way of differentiating if it happened due to the user hitting the X on the uploader or the server was down. How can I fire an event and do something when they click the X?

      dobbel 1 Reply Last reply Reply Quote 0
      • dobbel
        dobbel @beatscribe last edited by

        @beatscribe

        you can use slots to create your own button ect:
        https://quasar.dev/vue-components/uploader#Example--Custom-files-list

        Here’s a demo
        https://codepen.io/ontwikkelfabriek/pen/gOLNwmX

        1 Reply Last reply Reply Quote 0
        • beatscribe
          beatscribe last edited by

          I can use this to fire an event when they click the X that appears in place of the cloud upload icon when a big file is uploading? see pic

          dobbel 1 Reply Last reply Reply Quote 0
          • dobbel
            dobbel @beatscribe last edited by

            @beatscribe

            ah is see, wrong slot. Use this slot instead:
            https://quasar.dev/vue-components/uploader#Example--Custom-header

            1 Reply Last reply Reply Quote 1
            • beatscribe
              beatscribe last edited by

              thanks! that is super helpful!

              1 Reply Last reply Reply Quote 0
              • First post
                Last post