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

    q-uploader: multiple upload on the same file

    Framework
    1
    1
    163
    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.
    • M
      moxa last edited by moxa

      Is it possible to upload the same file “x” times ?
      I tried this, but it only load the file once :

      <template>
        <q-page class="flex flex-center">
          <q-uploader
            ref="fileUploader"
            url="http://localhost:4444/upload"
            @added="addedFile"
            hide-upload-button
          />
        </q-page>
      </template>
      
      <script>
      export default {
        name: 'PageIndex',
        methods: {
          addedFile (files) {
            this.uploadFile()
          },
          uploadFile () {
            // trying to upload the sameFile 5 times
            let i = 0
            while (i < 5) {
              this.$refs.fileUploader.upload();
              i += 1
            }
          }
      }
      </script>
      

      Does someone have any suggestions?

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