mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-16 07:08:55 +00:00
[avatar] supported file extension in upper case
This commit is contained in:
@@ -27,7 +27,7 @@ function changeAvatar(chg_btn, input, form) {
|
||||
filename = this.value;
|
||||
}
|
||||
if (filename.lastIndexOf('.') != -1) { // ext exists
|
||||
ext = filename.substr((filename.lastIndexOf('.') + 1));
|
||||
ext = filename.substr((filename.lastIndexOf('.') + 1)).toLowerCase();
|
||||
}
|
||||
if (ext) {
|
||||
for (var i = 0, len = allowed_ext.length; i < len; i++) {
|
||||
|
Reference in New Issue
Block a user