paste image 名称是untitled

This commit is contained in:
lealife
2015-11-28 21:47:50 +08:00
parent cfebf00cf1
commit c58e6874c2

View File

@ -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)