Added a comment to clarify that this shouldn't stay here.
authorChristopher Allan Webber <cwebber@dustycloud.org>
Mon, 6 Jun 2011 12:57:05 +0000 (07:57 -0500)
committerChristopher Allan Webber <cwebber@dustycloud.org>
Mon, 6 Jun 2011 12:57:05 +0000 (07:57 -0500)
mediagoblin/submit/security.py

index db4c860de9729e30734c23d21ac0ad7a9e923ee6..5a06a499683058cb0809c85f29c11e5ab400a954 100644 (file)
@@ -24,6 +24,8 @@ def check_filetype(posted_file):
     if not guess_type(posted_file.filename) in ALLOWED:
         return False
 
+    # TODO: This should be handled by the processing stage.  We should
+    # handle error detection there.
     try:
         image = image_open(posted_file.file)
     except IOError: