Re: Uploaded File Array

2009-06-29 Thread Rajesh Dhawan
BarakatX2 wrote: > When I do: > > print type(f) > > It outputs: > > > > Also when I try to get the filename using the name property of > UploadedFile, it says: > > 'str' object has no attribute 'name' > > When I just print f it shows: > > ëPNG Try something like this code: for fname, fvalue i

Re: Uploaded File Array

2009-06-29 Thread BarakatX2
When I do: print type(f) It outputs: Also when I try to get the filename using the name property of UploadedFile, it says: 'str' object has no attribute 'name' When I just print f it shows: ëPNG On Jun 29, 10:48 am, Rajesh D wrote: > On Jun 29, 11:05 am, BarakatX2 wrote: > > > I have a

Re: Uploaded File Array

2009-06-29 Thread Rajesh D
On Jun 29, 11:05 am, BarakatX2 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: > > png)>, , > ]}> > > But when I try to access the files like this: > > for f in files['rqFiles']: > > Then f is a

Uploaded File Array

2009-06-29 Thread BarakatX2
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: , , ]}> 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.