Mercurial > libervia-backend
diff sat/plugins/plugin_misc_upload.py @ 3182:f2bb57348587
plugin attach, XEP-0363: progress id can now be specified:
progress id can be specified in options, using the "progress_id" option, this can be
more handy for frontends to keep track of attachments progresses.
author | Goffi <goffi@goffi.org> |
---|---|
date | Sun, 23 Feb 2020 17:48:26 +0100 |
parents | 9d0df638c8b4 |
children | 9057713ab124 |
line wrap: on
line diff
--- a/sat/plugins/plugin_misc_upload.py Sun Feb 23 17:48:26 2020 +0100 +++ b/sat/plugins/plugin_misc_upload.py Sun Feb 23 17:48:26 2020 +0100 @@ -111,6 +111,8 @@ @param options(dict): option to use for the upload, may be: - ignore_tls_errors(bool): True to ignore SSL/TLS certificate verification used only if HTTPS transport is needed + - progress_id(str): id to use for progression + if not specified, one will be generated @param profile: %(doc_profile)s @return (tuple[unicode,D(unicode)]): progress_id and a Deferred which fire download URL when upload is finished