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-upload dynamic url

    Framework
    2
    3
    509
    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.
    • H
      Hariprasath last edited by

      i want to change the url of q-upload based on some process done by user in the page,
      but when i change the url with computed property its not working, it still the same initial value when the page opens

      1 Reply Last reply Reply Quote 0
      • s.molinari
        s.molinari last edited by

        That’s nice. 🙂

        Is there something you want to ask? How about showing us the code you have?

        Scott

        1 Reply Last reply Reply Quote 0
        • H
          Hariprasath last edited by Hariprasath

                  <q-uploader hide-upload-button auto-expand ref="files_uploader_cb" float-label="City Beauty" align="left" :multiple="true"
                    :url="file_upload_url_cb" :headers="{ 'X-CSRF-TOKEN': $store.state.CSRF }" method="POST" @uploaded="uploaded_cb"
                    @add="add_cb" @remove:cancel="removeCancel_cb" @start="start_cb" @finish="finish_cb" :clearable="true"/>
          
                  computed: {
                      file_upload_url_cb () {
                        return '/participant/' + this.participant_id + '?type=city_beauty'
                      }
                  }
          

          file_upload_url_cb computed property is used to get the URL for uploading the files
          this.participant_id will have the participant id who will get the file, it will change based on user iteraction

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