func (uf *UploadFile) getPath(filename string) (fullpath, name string) { name = utils.GetRandomName() ext := path.Ext(filename) if ext != "" && ext != "." { name += ext } fullpath = path.Join(uf.savePath, name) return }
func GetFileName() string { return utils.GetRandomName() }
func Getfilename() string { return utils.GetRandomName() }