comparison sat/plugins/plugin_misc_upload.py @ 3289:9057713ab124

plugin comp file sharing: files can now be uploaded/downloaded via HTTP: plugin XEP-0363 can now be used by components, and file sharing uses it. The new `public_id` file metadata is used to serve files. Files uploaded are put in the `/uploads` path.
author Goffi <goffi@goffi.org>
date Fri, 29 May 2020 21:55:45 +0200
parents f2bb57348587
children be6d91572633
comparison
equal deleted inserted replaced
3288:780fb8dd07ef 3289:9057713ab124
33 33
34 PLUGIN_INFO = { 34 PLUGIN_INFO = {
35 C.PI_NAME: "File Upload", 35 C.PI_NAME: "File Upload",
36 C.PI_IMPORT_NAME: "UPLOAD", 36 C.PI_IMPORT_NAME: "UPLOAD",
37 C.PI_TYPE: C.PLUG_TYPE_MISC, 37 C.PI_TYPE: C.PLUG_TYPE_MISC,
38 C.PI_MODES: C.PLUG_MODE_BOTH,
38 C.PI_MAIN: "UploadPlugin", 39 C.PI_MAIN: "UploadPlugin",
39 C.PI_HANDLER: "no", 40 C.PI_HANDLER: "no",
40 C.PI_DESCRIPTION: _("""File upload management"""), 41 C.PI_DESCRIPTION: _("""File upload management"""),
41 } 42 }
42 43