files = form.getlist('uploadfile') print len(files) for f in files: print f.file