From c58e6874c252b6e4f50db4c7d01ac38cecbdb4da Mon Sep 17 00:00:00 2001 From: lealife Date: Sat, 28 Nov 2015 21:47:50 +0800 Subject: [PATCH] =?UTF-8?q?paste=20image=20=E5=90=8D=E7=A7=B0=E6=98=AFunti?= =?UTF-8?q?tled?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controllers/FileController.go | 1 + 1 file changed, 1 insertion(+) diff --git a/app/controllers/FileController.go b/app/controllers/FileController.go index d418309..2d3da1d 100644 --- a/app/controllers/FileController.go +++ b/app/controllers/FileController.go @@ -125,6 +125,7 @@ func (c File) uploadImage(from, albumId string) (re info.Re) { var ext string if from == "pasteImage" { + handel.Filename = c.Message("unTitled") ext = ".png" // TODO 可能不是png类型 } else { _, ext = SplitFilename(filename)