gorm update
This commit is contained in:
@@ -150,7 +150,7 @@ func UploadFile(file *multipart.FileHeader, t FileType) (string, error) {
|
||||
}
|
||||
|
||||
func GetPath() string {
|
||||
return fmt.Sprintf("upload/%s/%s/%s/", time.Now().Format("2006"), time.Now().Format("01"), time.Now().Format("02"))
|
||||
return fmt.Sprintf("public/%s/%s/%s/", time.Now().Format("2006"), time.Now().Format("01"), time.Now().Format("02"))
|
||||
}
|
||||
|
||||
func GenFilename(ext string) string {
|
||||
|
||||
Reference in New Issue
Block a user