mirror of
https://github.com/casdoor/casdoor.git
synced 2025-05-23 02:35:49 +08:00
Improve UploadResource()
This commit is contained in:
parent
070aa8a65f
commit
4de716fef3
@ -272,6 +272,11 @@ func (c *ApiController) UploadResource() {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if username == "Built-in-Untracked" {
|
||||||
|
c.ResponseOk(fileUrl, objectKey)
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
if createdTime == "" {
|
if createdTime == "" {
|
||||||
createdTime = util.GetCurrentTime()
|
createdTime = util.GetCurrentTime()
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user