Skip to content
Myr

Better wording

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Armin Ronacher · committed by Armin Ronacher · parent 5e336f9 · Browse files · 1 file+5 added−5 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+5 added−5 removed

  • other:+5 added−5 removed

1 file+5 added−5 removed

modified:flask/debughelpers.py+5 added-5 removed
18 unmodified lines
19 form_matches = request.form.getlist(key)20 buf = ['You tried to access the file "%s" in the request.files '21 'dictionary but it does not exist. The mimetype for the request '22 'is "%s" instead of "multipart/form-data" which means that no '23 'files were transmitted. To fix this error you most likely have '24 'to provide enctype="multipart/form-data" in your form.' %23 'file contents were transmitted. To fix this error you should '24 'provide enctype="multipart/form-data" in your form.' %25 (key, request.mimetype)]26 if form_matches:27 buf.append('\n\nThe browser instead most likely submitted the '28 'filenames in the form. This was submitted: %s' %29 ', '.join('"%s"' % x for x in form_matches))27 buf.append('\n\nThe browser instead some file names. This was '28 'submitted: %s' % ', '.join('"%s"' % x29 for x in form_matches))30 self.msg = ''.join(buf)3132 def __str__(self):33 return self.msg
19 unmodified lines