Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
aa.gusti
/
opensipkd-tools
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Settings
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit ca590a20
authored
Jan 04, 2023
by
aagusti
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
perbaikan upload
1 parent
59e7d68e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
0 deletions
opensipkd/tools/__init__.py
opensipkd/tools/__init__.py
View file @
ca590a2
...
...
@@ -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
,
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment