diff --git a/internal/file/handlers.go b/internal/file/handlers.go index d662050..2b36440 100644 --- a/internal/file/handlers.go +++ b/internal/file/handlers.go @@ -111,7 +111,7 @@ func (h *Handler) View(c *gin.Context) { record, err := h.service.DownloadFile(id) if err != nil { - c.HTML(http.StatusOK, "fileNotFound.html", nil) + c.HTML(http.StatusOK, "error.html", nil) return } name := util.SafeFilename(record.Filename) @@ -135,7 +135,7 @@ func (h *Handler) Download(c *gin.Context) { record, err := h.service.DownloadFile(id) if err != nil { - c.HTML(http.StatusOK, "fileNotFound.html", nil) + c.HTML(http.StatusOK, "error.html", nil) return } name := util.SafeFilename(record.Filename) @@ -151,7 +151,7 @@ func (h *Handler) Delete(c *gin.Context) { _, err := h.service.DeleteFileByDeletionID(id) if err != nil { - c.HTML(http.StatusOK, "fileNotFound.html", nil) + c.HTML(http.StatusOK, "error.html", nil) return } diff --git a/internal/web/handler.go b/internal/web/handler.go index 4b2544d..af3800c 100644 --- a/internal/web/handler.go +++ b/internal/web/handler.go @@ -50,7 +50,7 @@ func (h *Handler) FileView(c *gin.Context) { fileRecord, err := h.fileService.GetFileByViewID(id) if err != nil { - c.HTML(404, "fileNotFound.html", nil) + c.HTML(404, "error.html", nil) return } diff --git a/templates/complete.html b/templates/complete.html index 1ccab5b..560f451 100644 --- a/templates/complete.html +++ b/templates/complete.html @@ -6,105 +6,136 @@
+
+
+ - A service by Brammie15 -
+ +
+
+
+