Allow SVG upload

Just to make #222 able to merge again
This commit is contained in:
Alexandre Teles 2016-08-22 15:05:35 -03:00 committed by GitHub
parent ac263e4230
commit acb32518ca
1 changed files with 2 additions and 2 deletions

View File

@ -356,7 +356,7 @@ $(document).ready(function() {
{ {
type: "json", type: "json",
action: HTML_PATH_ADMIN_ROOT+"ajax/uploader", action: HTML_PATH_ADMIN_ROOT+"ajax/uploader",
allow : "*.(jpg|jpeg|gif|png)", allow : "*.(jpg|jpeg|gif|png|svg)",
params: {"type":"profilePicture", "username":"'.$username.'"}, params: {"type":"profilePicture", "username":"'.$username.'"},
loadstart: function() { loadstart: function() {
@ -391,4 +391,4 @@ $(document).ready(function() {
echo $html.$script; echo $html.$script;
} }
} }