We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
file 类型的表单不能指定特定的 uploader 么?因为需要上传到不同的目录,所以不想就用系统启动后指定的uploader,或者有什么别的办法可以实现上传到不用的目录?
formList.AddField("目标icon", "target_icon", db.Varchar, form.File). FieldDisplay(func(value types.FieldModel) interface{} { if value.Value == "" { return "" } else { return fmt.Sprintf("https://%s/%s", l.svcCtx.Config.AliOSS.Domain, value.Value) } }). FieldMust(). FieldDefault(fmt.Sprintf("%s/image/default.png", l.svcCtx.Config.AliOSS.Target))
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Description [describe your questions]
file 类型的表单不能指定特定的 uploader 么?因为需要上传到不同的目录,所以不想就用系统启动后指定的uploader,或者有什么别的办法可以实现上传到不用的目录?
Example code [If you have any code info]
formList.AddField("目标icon", "target_icon", db.Varchar, form.File).
FieldDisplay(func(value types.FieldModel) interface{} {
if value.Value == "" {
return ""
} else {
return fmt.Sprintf("https://%s/%s", l.svcCtx.Config.AliOSS.Domain, value.Value)
}
}).
FieldMust().
FieldDefault(fmt.Sprintf("%s/image/default.png", l.svcCtx.Config.AliOSS.Target))
Others [screenshots or other info]
The text was updated successfully, but these errors were encountered: