Improve file sharing (#171)
Andrzej Wójcik (Tigase) opened 5 years ago

File sharing in BeagleIM is implemented in such a way, that the client uploads a file to the HTTP server and sends a link as oob. This works ok, as BeagleIM is able to show a link and download image and show miniature in the chat window.

This method, however, does not allow BeagleIM to keep original of the uploaded/downloaded file - only a miniature.

It would be far better to be able to have a downloaded file attached to the conversation in BeagleIM so that there would be no need to redownload this file.

This new behavior is required when HTTP server keeps files online only for a short period of time (ie. only a few days) or when OMEMO encryption of the file is used as in this case BeagleIM needs to download a file and decrypt it - it cannot just pass the download URL to the browser.

Andrzej Wójcik (Tigase) commented 5 years ago

This task is mostly done as files are downloaded and previewed in the chat UI. It is also possible to download files which are shared with a user which exceed automatic download limit (file size limit).

We still need a UI for listing all of attached/shared files and UI testing if sending files stores them in the internal storage, so there is no need for retrieval of those files after they are sent (as we already have them).

issue 1 of 1
Type
New Feature
Priority
Normal
Assignee
Spent time
50h 30m
Issue Votes (0)
Watchers (0)
Reference
tigase/_clients/beagle-im#171
Please wait...
Page is in error, reload to recover