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