admin管理员组

文章数量:1290134

I am using the Dropify jQuery plugin for attachment but I am unable to add multiple attachments at the same time. I am using it in ASP.Net MVC5. Here is my code

<input type="file" id="MemberImage" name="MemberImage" class="dropify" data-default-file="@Model.MemberImage" data-height="230" />
$('.dropify').dropify();

I am using the Dropify jQuery plugin for attachment but I am unable to add multiple attachments at the same time. I am using it in ASP.Net MVC5. Here is my code

<input type="file" id="MemberImage" name="MemberImage" class="dropify" data-default-file="@Model.MemberImage" data-height="230" />
$('.dropify').dropify();
Share Improve this question edited Sep 17, 2018 at 7:40 Rory McCrossan 338k41 gold badges320 silver badges351 bronze badges asked Sep 17, 2018 at 7:37 Mashhad SaleemMashhad Saleem 1771 gold badge2 silver badges18 bronze badges 3
  • Dropify does not support multiple file inputs. If you need this you will have to create repeated single file inputs, or use a better library. – Rory McCrossan Commented Sep 17, 2018 at 7:41
  • I'm not sure the plugin supports multiple attachments – Carsten Løvbo Andersen Commented Sep 17, 2018 at 7:41
  • @RoryMcCrossan Can you suggest me some other plugin to upload multiple attachment – Mashhad Saleem Commented Sep 17, 2018 at 10:01
Add a ment  | 

1 Answer 1

Reset to default 9

Write multiple in Your Tag

<input type="file" id="MemberImage" name="MemberImage" class="dropify" data-default-file="@Model.MemberImage" data-height="220" multiple/>

Notes: Dropify displays only one image of the selected

本文标签: javascriptHow to make dropify for multiple attachmentStack Overflow