diff 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
line wrap: on
line diff
--- a/sat/plugins/plugin_misc_upload.py	Fri May 29 21:50:49 2020 +0200
+++ b/sat/plugins/plugin_misc_upload.py	Fri May 29 21:55:45 2020 +0200
@@ -35,6 +35,7 @@
     C.PI_NAME: "File Upload",
     C.PI_IMPORT_NAME: "UPLOAD",
     C.PI_TYPE: C.PLUG_TYPE_MISC,
+    C.PI_MODES: C.PLUG_MODE_BOTH,
     C.PI_MAIN: "UploadPlugin",
     C.PI_HANDLER: "no",
     C.PI_DESCRIPTION: _("""File upload management"""),