title: How to not have a null item in a collection in .net mvc with html 5 input with attribute "multiple"
body: <p>This is my View Model.</p>
  
  <pre><code>Public Class SomeClass   
      Public Property Attachments As IEnumerable(Of System.Web.HttpPostedFileBase)
      'other stuff
      'other stuff
  End Class
  </code></pre>
  
  <p>And in my view:</p>
  
  <pre><code>@Html.TextBoxFor(Function(model) model.Attachments, New With {.type = "file", .multiple = True})
  </code></pre>
  
  <p>When I select at least one image to upload then everything works correctly. However, when I don't upload any image, the collection contains one item but that item is null.
  <a href="https://i.stack.imgur.com/q6Pj6.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/q6Pj6.png" alt="enter image description here"></a></p>
  
  <p>Is there a way for me to make where when there is nothing to upload it just return an null collection or an empty collection?</p>