Added a comment to clarify that this shouldn't stay here.
This commit is contained in:
parent
2190ecde8d
commit
fe4ffb860f
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user