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
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
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
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.
4 matches
Mail list logo