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