(refs #28)Avatar image can be uploaded at the account editing page.

This commit is contained in:
takezoe
2013-07-10 14:15:56 +09:00
parent 240a749b87
commit 2da756692b
6 changed files with 95 additions and 52 deletions

View File

@@ -44,4 +44,13 @@ object FileUtil {
}
}
def getExtension(name: String): String = {
val index = name.lastIndexOf('.')
if(index >= 0){
name.substring(index + 1)
} else {
""
}
}
}