Purevsuren Bathishig
Purevsuren Bathishig

Reputation: 33

Angularjs multiple file upload

<input file-model="ad.File"
                 type="file"
                 class="form-control"
                 ng-required="true"
                 name="file"
                 ng-show="ad.Type"/>

My project stuck on multiple file upload with angularjs one file upload working fine but i can't upload multiple files. Searched well but can't find solution.

Upvotes: 0

Views: 720

Answers (1)

Slava.K
Slava.K

Reputation: 3080

You are missing multiple attribute on your file input. It should be:

<input file-model="ad.File"
             type="file"
             class="form-control"
             ng-required="true"
             name="file"
             ng-show="ad.Type"
             multiple/>

Upvotes: 1

Related Questions