Skip to content

Commit

Permalink
with docker
Browse files Browse the repository at this point in the history
  • Loading branch information
sjqzhang committed Oct 31, 2023
1 parent 876ae95 commit c16ce74
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions server/http_upload.go
Original file line number Diff line number Diff line change
Expand Up @@ -237,8 +237,9 @@ func (c *Server) upload(w http.ResponseWriter, r *http.Request) {
if Config().EnableDistinctFile {
if v, _ := c.GetFileInfoFromLevelDB(fileInfo.Md5); v != nil && v.Md5 != "" {
fileResult = c.BuildFileResult(v, r)
if c.GetFilePathByInfo(&fileInfo, false) != c.GetFilePathByInfo(v, false) {
os.Remove(c.GetFilePathByInfo(&fileInfo, false))
withDocker:= DOCKER_DIR!=""
if c.GetFilePathByInfo(&fileInfo, withDocker) != c.GetFilePathByInfo(v, withDocker) {
os.Remove(c.GetFilePathByInfo(&fileInfo, withDocker))
}
if output == "json" || output == "json2" {
if output == "json2" {
Expand Down

0 comments on commit c16ce74

Please sign in to comment.