Commit ca590a20 by aagusti

perbaikan upload

1 parent 59e7d68e
......@@ -437,6 +437,7 @@ img_exts = ['.png', '.jpg', '.pdf', '.jpeg']
def image_validator(node, value):
log.debug(value)
ext = get_ext(value["filename"])
if ext not in img_exts:
raise colander.Invalid(node,
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!