PhoenixKit 2.8.1: A warning before leaving a page mid-upload
PhoenixKit 2.8.1 protects uploads in progress: the browser now asks before a tab is closed or reloaded while a file is still uploading.
Closing or reloading lost the transfer without a word, since LiveView uploads do not resume. The browser now shows its own leave-page dialog first. This applies to both the drag-and-drop and the button style of the upload component.
The upload component’s texts, such as “Drag files here or click to browse”, “Drop your files to upload”, “Cancel upload” and the maximum file size line, are now translatable, and the default label “Upload Files” is translated. The “Columns” and “Shown” labels of the column settings window from 2.8.0 are translated into all seven languages too.
Full release notes: PhoenixKit 2.8.1
2.8.1 · 16 August 2026
Added
- UploadGuard.
Core.FileUploadnow blocks accidental tab close/refresh while a file is mid-upload — the browser’s nativebeforeunloaddialog fires instead of silently losing an in-flight transfer (LiveView uploads aren’t resumed). Applies to both the drag-drop and button variants (#720).
Changed
Core.FileUploadstatic strings are translatable. “Cancel upload”, “Drag files here or click to browse”, “Drop your files to upload”, and “Maximum file size: …” now go throughgettext; thelabelattr defaults to a translated “Upload Files” instead of a hardcoded string (#720).
Fixed
default.potextraction drift.Core.ColumnSettings’ “Columns” and “Shown” labels (added in 2.8.0) had never been extracted, leaving them untranslated in every non-English locale. Re-extracted and translated into de/es/et/fr/it/pl/ru.
PhoenixKit 2.8.1. Install or update: {:phoenix_kit, "~> 2.8"}, then mix deps.get && mix phoenix_kit.update. Full history: CHANGELOG.