From b323496b18ec5c909ee429f53330d8b51c37e9f6 Mon Sep 17 00:00:00 2001 From: ARUMANDESU Date: Thu, 13 Jun 2024 13:56:48 +0500 Subject: [PATCH] bugfix --- internal/handler/event/files.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/handler/event/files.go b/internal/handler/event/files.go index 18337f6..a2f7f0f 100644 --- a/internal/handler/event/files.go +++ b/internal/handler/event/files.go @@ -50,7 +50,7 @@ func (h *Handler) UploadFileHandler(c *gin.Context) { return } - c.JSON(http.StatusOK, gin.H{"url": url}) + c.JSON(http.StatusOK, gin.H{"name": file.Name, "type": file.Type, "url": url}) } func (h *Handler) UploadFilesHandler(c *gin.Context) { @@ -203,7 +203,7 @@ func (h *Handler) UploadImageHandler(c *gin.Context) { return } - c.JSON(http.StatusOK, gin.H{"url": url}) + c.JSON(http.StatusOK, gin.H{"name": file.Name, "type": file.Type, "url": url}) } func (h *Handler) DeleteFileHandler(c *gin.Context) {