[PR #2204] [MERGED] fix: show user-visible errors when file attachment uploads fail #8114

Closed
opened 2026-04-20 18:02:48 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/go-vikunja/vikunja/pull/2204
Author: @kolaente
Created: 2/8/2026
Status: Merged
Merged: 2/8/2026
Merged by: @kolaente

Base: mainHead: fix-s3-upload-error-handling


📝 Commits (2)

  • a4ac22a fix: format attachment upload error messages as readable strings
  • 872928f fix: handle attachment upload errors with user-visible notifications

📊 Changes

2 files changed (+8 additions, -3 deletions)

View changed files

📝 frontend/src/components/tasks/partials/Attachments.vue (+6 -2)
📝 frontend/src/helpers/attachments.ts (+2 -1)

📄 Description

  • Fix error message formatting in uploadFiles() — the previous code passed an array of {code, message} objects to Error(), which coerced them to "[object Object]". Now extracts .message strings and joins them.
  • Add async/await and try/catch to uploadFilesToTask() in Attachments.vue so upload errors are caught and displayed as toast notifications via the existing error() helper.

Partially adresses https://github.com/go-vikunja/vikunja/issues/2181


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/go-vikunja/vikunja/pull/2204 **Author:** [@kolaente](https://github.com/kolaente) **Created:** 2/8/2026 **Status:** ✅ Merged **Merged:** 2/8/2026 **Merged by:** [@kolaente](https://github.com/kolaente) **Base:** `main` ← **Head:** `fix-s3-upload-error-handling` --- ### 📝 Commits (2) - [`a4ac22a`](https://github.com/go-vikunja/vikunja/commit/a4ac22a94e589955fa87f0920cd593b5dd425b1a) fix: format attachment upload error messages as readable strings - [`872928f`](https://github.com/go-vikunja/vikunja/commit/872928f5a9672a4f84ec5c64491b1d88f92a679e) fix: handle attachment upload errors with user-visible notifications ### 📊 Changes **2 files changed** (+8 additions, -3 deletions) <details> <summary>View changed files</summary> 📝 `frontend/src/components/tasks/partials/Attachments.vue` (+6 -2) 📝 `frontend/src/helpers/attachments.ts` (+2 -1) </details> ### 📄 Description - Fix error message formatting in `uploadFiles()` — the previous code passed an array of `{code, message}` objects to `Error()`, which coerced them to `"[object Object]"`. Now extracts `.message` strings and joins them. - Add `async`/`await` and `try/catch` to `uploadFilesToTask()` in `Attachments.vue` so upload errors are caught and displayed as toast notifications via the existing `error()` helper. Partially adresses https://github.com/go-vikunja/vikunja/issues/2181 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-04-20 18:02:48 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/vikunja#8114