If you're opening files you should use the context manager - for example: with request.POST['file'] as field: data = field.file.read()
On Tue, Feb 4, 2020 at 3:53 PM Jonathan Vanasco <jonat...@findmeon.com> wrote: > After even more testing (half my day!)... > > My app needed an `add_finished_callback` to close any > `webob.compat.cgi_FieldStorage` objects in forms. > > -- > You received this message because you are subscribed to the Google Groups > "pylons-discuss" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to pylons-discuss+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/pylons-discuss/b87e949c-62f7-43b9-a609-d78bd8ea6015%40googlegroups.com > <https://groups.google.com/d/msgid/pylons-discuss/b87e949c-62f7-43b9-a609-d78bd8ea6015%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- Michael -- You received this message because you are subscribed to the Google Groups "pylons-discuss" group. To unsubscribe from this group and stop receiving emails from it, send an email to pylons-discuss+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/pylons-discuss/CAKdhhwH6aQnp%2Br-cugEpx3N4J0D8nekKdqhgavTYyTGQQ_YAtQ%40mail.gmail.com.