Fix upload de documents depuis DocumentCreate

This commit is contained in:
Victor Lacasse-Beaudoin 2023-04-28 16:52:16 -04:00
parent 07005c8753
commit cc4ab5851d
2 changed files with 39 additions and 34 deletions

View file

@ -386,7 +386,7 @@ func handleV1DocumentCreate(c echo.Context) error {
bucket := c.Param("bucket")
form_file, err := c.FormFile("file")
form_file, err := c.FormFile("document")
if err != nil {
log.Println(err)
return c.JSON(http.StatusBadRequest, map[string]interface{}{