Exemple #1
0
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
}
Exemple #2
0
func GetFileName() string {
	return utils.GetRandomName()
}
Exemple #3
0
func Getfilename() string {
	return utils.GetRandomName()
}