Kevin Hu commited on
Commit
0bf0841
·
1 Parent(s): ec845d5

fix minio error (#2321)

Browse files

### What problem does this PR solve?

### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)

Files changed (1) hide show
  1. api/apps/file_app.py +1 -1
api/apps/file_app.py CHANGED
@@ -116,7 +116,7 @@ def upload():
116
  "size": len(blob),
117
  }
118
  file = FileService.insert(file)
119
- MINIO.put(last_folder.id, location, blob)
120
  file_res.append(file.to_json())
121
  return get_json_result(data=file_res)
122
  except Exception as e:
 
116
  "size": len(blob),
117
  }
118
  file = FileService.insert(file)
119
+ STORAGE_IMPL.put(last_folder.id, location, blob)
120
  file_res.append(file.to_json())
121
  return get_json_result(data=file_res)
122
  except Exception as e: