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

    How to get numbers of file in q-uploader

    Help
    2
    3
    648
    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.
    • B
      bosconovitchi last edited by

      I tried to use @add and @remove function to get numbers of file.It has a file object as parameter.
      I use file.length,but just can get numbers of file i chosed in windows explorer.
      How to get total of file in the q-uploader.

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

        I haven’t used q-uploader, but when I tried this out, this is what I did:

        In my template:
        <q-uploader multiple :url=“url” @add=“uploadAdded”/>

        Then in my Vue code:
        methods: {
        uploadAdded (file) {
        console.log(‘file.length’, file.length)
        }
        }

        I choose 2 text files from my computer, and I saw “file.length 2” appear in my console.

        Do you see any errors when you run your code?

        Did you add this component into the components area of the ‘quasar.conf.js’ file?

        B 1 Reply Last reply Reply Quote 1
        • B
          bosconovitchi @somascope last edited by

          @somascope
          I tried that too .
          Use the @add and @remove to count.I still think some where in q-uploader still can get it.

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