Upload multiple files in angular

前端 未结 3 1537
情书的邮戳
情书的邮戳 2020-12-05 13:35

I\'ve a situation where I\'ve a form in which I\'ve a row where I\'ve two text fields entries and I\'ve to upload a file for that row and this kind of rows can be \'N\' and

3条回答
  •  温柔的废话
    2020-12-05 13:52

    If you don't care about browsers less than IE 9. Then you can follow this post and construct a FormData object in your ng-submit event. This will create a form/multipart and might not be what your looking for but it does the trick.

提交回复
热议问题