Skip to content

Media file upload

nannanko Suki requested to merge media-file-upload into servant

Checklist | 检查清单

Before marking this merge request as Ready, the following must be done:


  • The code must compile. Preferably, each commit should compile.


  • Any added UI text must be translated via l10n.get(). The messages must be translated into every core language: en, cmn.

    任何添加的 UI 文字都要用 l10n.get() 翻译。 讯息必须翻译成所有核心语言:en,cmn。

    • The merge request creator must translate each message into one of the core languages. The others can be handled by others.

      开合并请求的人必须把每条讯息翻译成一种核心语言。 别的可以给别人做。

  • If the merge request contains a user-visible change, it must have a changelog.



  • Set msgtype according to mimetype.


  • When an error is encountered, show the reason.


已知的问题 | Known issues

  • Switching back and forth between rooms causes the upload list to appear blank.


  • After starting the download, switching back and forth between rooms causes the program to crash


Tested features | 已测试的功能

  • Simple upload/download. Start the upload/download task and wait for the task to complete to check whether it is successful and whether the relevant UI is displayed normally.

    简单上传/下载。开启上传/下载任务,等待任务完成,查看是否成功及相关 UI 是否正常显示。

  • Upload/download with switch room operation. After the upload/download task is started, switch rooms, and the upload/download task should run normally in the background. After switching back to the room, the progress of the incomplete upload/download task should be updated in real time, and the completed task leaves a message representing the result at the location where the upload/download was started (no information if the upload is successful).


  • The UI is scalable depends on the size of the window (text should wrap automatically, and progress bars should be variable in length).

    UI 能够跟随应用尺寸伸缩(文字应做到自动折行,进度条应做到长度可变)。

  • Error handling.Cancel the task when an error occurs and display a message where the task is started. Supported error messages are:


    • User canceled


    • Open file error.For example, an attempt was made to save a file to a file that exceeded permissions


    • Write file error.


    • Internal error.It always a bug.

      内部错误,通常是一个 bug 。

Edited by nannanko Suki

Merge request reports