web/formfields.py
changeset 5270 6297d5265572
parent 5238 31c12863fd9d
child 5385 b6e250dd7a7d
--- a/web/formfields.py	Wed Apr 14 17:38:24 2010 +0200
+++ b/web/formfields.py	Thu Apr 15 12:46:08 2010 +0200
@@ -589,8 +589,9 @@
             # raise UnmodifiedField instead of returning None, since the later
             # will try to remove already attached file if any
             raise UnmodifiedField()
+        # value is a 2-uple (filename, stream)
         filename, stream = value
-        # value is a  3-uple (filename, mimetype, stream)
+        # XXX avoid in memory loading of posted files. Requires Binary handling changes...
         value = Binary(stream.read())
         if not value.getvalue(): # usually an unexistant file
             value = None