Cleanup handleV1DocumentCreate

This commit is contained in:
Victor Lacasse-Beaudoin 2023-04-24 18:33:42 -04:00
parent e21fe3be11
commit 2732d36066

View file

@ -310,7 +310,6 @@ func handleV1DocumentCreate(c echo.Context) error {
documents_secret_access_key := viper.GetString("server.documents.secret_access_key")
documents_use_ssl := viper.GetBool("server.documents.use_ssl")
//bucket := c.FormValue("bucket")
bucket := c.Param("bucket")
form_file, err := c.FormFile("file")
@ -343,9 +342,6 @@ func handleV1DocumentCreate(c echo.Context) error {
ContentType: form_file.Header.Get("Content-Type"),
})
if err != nil {
//TODO
log.Println(err)
return c.JSON(http.StatusInternalServerError, map[string]string{
"message": "Error during minio#PutObject",
})