On Jun 29, 10:48 am, Rajesh D <
rajesh.dha...@gmail.com> wrote:
> On Jun 29, 11:05 am, BarakatX2 <
baraka...@gmail.com> wrote:
>
> > I have a form that allows a dynamic number of files to be uploaded. On
> > the Django side, if I print the request.FILES it is described as:
>
> > <MultiValueDict: {u'rqFiles': [<InMemoryUploadedFile: add.png (image/
> > png)>, <InMemoryUploadedFile: del.png (image/png)>,
> > <InMemoryUploadedFile: up.png (image/png)>]}>
>
> > But when I try to access the files like this:
>
> > for f in files['rqFiles']:
>
> > Then f is a string with some ascii characters including the file
> > extension. Shouldn't it be an InMemoryUploadedFile?
>
> Yes. How are you checking that it is not? If you just print "f", you
> will see the name of the file but its type would be correct.
>
> > How should I be
> > accessing files['rqFiles']?
>