CorentinTh / enclosed

Minimalistic web app designed for sending private and secure notes.
https://enclosed.cc
Apache License 2.0
309 stars 13 forks source link

Add Front-End Spinner / Progress Bar For Large-File Attachments #127

Closed huiguang-liang closed 1 week ago

huiguang-liang commented 2 weeks ago

What type of request is this?

New feature idea

Clear and concise description of the feature you are proposing

As-Is

Attaching a file brings up the file selection dialog, and choosing a file. There's no front-end warning or message to indicate file limit, so the user can choose any arbitrary sized file to attached. When clicking 'create note', the website seems to freeze and the "page is not responding" browser dialog box pops up (especially for large files). After choosing to wait, the user will finally get a "file is too large" waiting and a failure to create a note event.

To-Be

Before attaching a file, provide a by-line to indicate the configured file size limit. On creating notes, display a front-end UI progress indicator or spinner to avoid the appearance of freezing and triggering "page is not responding" browser warning.

Additional context

No response

Validations

CorentinTh commented 2 weeks ago

Hi @huiguang-liang Good point, I'll add some visual clue when encryption take some time, and some frontend limitation for the file sizes Thanks for report :pray:

CorentinTh commented 2 weeks ago

Related to https://github.com/CorentinTh/enclosed/discussions/126