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
    1. Home
    2. maotheniger
    M
    • Profile
    • Following 0
    • Followers 0
    • Topics 1
    • Posts 1
    • Best 0
    • Groups 0

    maotheniger

    @maotheniger

    0
    Reputation
    1
    Profile views
    1
    Posts
    0
    Followers
    0
    Following
    Joined Last Online

    maotheniger Follow

    Latest posts made by maotheniger

    • How can i append Q-file items to FormData

      Hello Friends;
      i have a Qfile picker. I selected some files with it. After selection i need to send data to node service. I am using in node service multer. After append QFile selection on Form data and sent with axios multer give me “MulterError: Unexpected field” error. How can i append Qfile picker selection ?

       <q-file
                outlined
                :max-files="5"
                hint="5 Adet Resim Seçebilirsiniz."
                v-model="form.urun_resim_list"
                placeholder="Resim Seçiniz"
                multiple
                append
                counter
                :filter="checkFileType"
                :max-total-size="2000000"
              >
                <template v-slot:prepend>
                  <q-icon name="cloud_upload" @click.stop />
                </template>
              </q-file>
      
      
      
      
      
      
      var fd = new FormData();
      
        this.form.urun_resim_list.forEach((element) => {
          console.log(element);
          fd.append("images", element);
        });
      
        let data = await this.$axios.post(
          "/EcommerceManagement/addProducts",
          fd,
          { headers: { "Content-Type": "multipart/form-data" } }
        );
      posted in Framework
      M
      maotheniger