title: Upload multiple files with one single input
body: <p>Multiple files do not save in admin, only the first saved in admin.</p>
  <pre><code> class Image(models.Model):
          imageuploader_profile = models.ForeignKey(settings.AUTH_USER_MODEL,on_delete=models.CASCADE, null=True, blank=True)
          image = models.FileField(upload_to ='pictsagram/')
          image_caption = models.CharField(max_length=700)
      
  def upload(request):
      form = PostForm(request.POST,request.FILES)
      if request.method == &quot;POST&quot;:
          if form.is_valid():
              for f in request.FILES.getlist('image'):
                  post = Image(image=f)
                  post = form.save(commit=False)
                  post.imageuploader_profile = request.user
                  print(request.user)
                  post.save()
                  form.save()
                  return redirect('/')
          else:
              form = PostForm()
      return render(request, 'upload.html', {&quot;form&quot;: form})
  
  class PostForm(forms.ModelForm):
      class Meta:
      model = Image
      fields = ('image_caption', 'image',)
  
  &lt;form action=&quot;{% url 'site:upload' %}&quot; method=&quot;post&quot; enctype=&quot;multipart/form-data&quot;&gt;
  {%csrf_token%}
  &lt;input type=&quot;file&quot; name=&quot;file&quot; multiple onchange=&quot;loadFile(event)&quot; required=&quot;&quot; id=&quot;id_file&quot;&gt;
  &lt;button type=&quot;submit&quot;&gt;Post&lt;/button&gt;
  &lt;/form&gt;
  </code></pre>