(refs #12) Implemented the process of saving image.

This commit is contained in:
shimamoto
2014-04-27 21:08:31 +09:00
parent 63c4e12259
commit 27fa9df2ee
3 changed files with 4 additions and 6 deletions

View File

@@ -25,7 +25,7 @@ class FileUploadController extends ScalatraServlet with FileUploadSupport {
post("/image/:owner/:repository"){
execute { (file, fileId) =>
FileUtils.writeByteArrayToFile(new java.io.File(getAttachedDir(params("owner"), params("repository")), fileId), file.get)
}
}