#NEWLINE# def __init__( self , request , key ) : #NEWLINE# #INDENT# form_matches = request . form . getlist ( key ) #NEWLINE# buf = [ ( 'You tried to access the file "%s" in the request.files dictionary but it does not exist.  The mimetype for the request is "%s" instead of "multipart/form-data" which means that no file contents were transmitted.  To fix this error you should provide enctype="multipart/form-data" in your form.' % ( key , self . mimetype ) ) ] #NEWLINE# if form_matches : #NEWLINE# #INDENT# buf . append ( ( '\n\nThe browser instead transmitted some file names. This was submitted: %s' % ', ' . join ( ( ( '"%s"' % x ) for x in form_matches ) ) ) ) #NEWLINE# #UNINDENT# self . msg = '' . join ( buf )