plugin XEP-0363, upload: File upload (through HTTP upload only for now):

- HTTP upload implementation
    - if the upload link is HTTPS, certificate is checked (can be disabled on demand)
    - file can be uploaded directly, or a put/get slot can be requested without actual upload.
        The later is mainly useful for distant frontends like Libervia
    - upload plugin manage different upload methods, in a similar way as file plugin
    - download url is sent in progressFinished metadata on successful upload
This commit is contained in:
Goffi 2015-11-22 17:33:30 +01:00
commit 6ee923f9ef

View file

@ -336,7 +336,7 @@ class XEP_0096(object):
self.host.bridge.newAlert(_("The contact {} has refused your file").format(from_s), _("File refused"), "INFO", client.profile)
else:
log.warning(_(u"Error during file transfer"))
self.host.bridge.newAlert(_(u"Something went wrong during the file transfer session initialisation: {reason}").format(reason=unicode(stanza_err.value)), _("File transfer error"), "ERROR", client.profile)
self.host.bridge.newAlert(_(u"Something went wrong during the file transfer session initialisation: {reason}").format(reason=unicode(stanza_err)), _("File transfer error"), "ERROR", client.profile)
elif failure.check(exceptions.DataError):
log.warning(u'Invalid stanza received')
else: