(refs #28)Upload avatar part is separated from account editing form.

This commit is contained in:
takezoe
2013-07-10 20:20:05 +09:00
parent 485d6131d5
commit 96872d7d41
7 changed files with 134 additions and 90 deletions

View File

@@ -105,6 +105,7 @@ trait AccountControllerBase extends ControllerBase with FlashMapSupport {
} else NotFound
}
// TODO Merge with UserManagementController
private def updateImage(userName: String, fileId: Option[String]): Unit = {
fileId.map { fileId =>
val filename = "avatar." + FileUtil.getExtension(FileUploadUtil.getUploadedFilename(fileId).get)