lian-yue / vue-upload-component

Vue.js file upload component, Multi-file upload, Upload directory, Drag upload, Drag the directory, Upload multiple files at the same time, html4 (IE 9), `PUT` method, Customize the filter
Apache License 2.0
2.68k stars 700 forks source link

multi vue-upload-component use in page #345

Open vahidrezaei opened 4 years ago

vahidrezaei commented 4 years ago

hi I generate multi component with v-for and inside each component use file-upload with different data="" but just work first component and not fire upload other component.

<base-component>
  <div v-for="item in items">
    <item-component>
         <file-upload>
         </file-upload>
    </item-component>
  </div>
</base-component>
Cuacha07 commented 4 years ago

maybe yo can use "input-id" prop.

PankovAlxndr commented 4 years ago

same problem: fire only first

maybe yo can use "input-id" prop.

https://lian-yue.github.io/vue-upload-component/#/documents#options-props-input-id solve this problem, thanks