From fe4ffb860fcf211406861a726c64439435964f4c Mon Sep 17 00:00:00 2001 From: Christopher Allan Webber Date: Mon, 6 Jun 2011 07:57:05 -0500 Subject: [PATCH] Added a comment to clarify that this shouldn't stay here. --- mediagoblin/submit/security.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mediagoblin/submit/security.py b/mediagoblin/submit/security.py index db4c860d..5a06a499 100644 --- a/mediagoblin/submit/security.py +++ b/mediagoblin/submit/security.py @@ -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: -- 2.25.1