From: Michael Tremer Date: Wed, 29 Jan 2025 10:39:39 +0000 (+0000) Subject: uploads: Send an URL to the client where to send the payload X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e3a8f0a3fc6ee6533e6698a73a04da3968b480a6;p=pbs.git uploads: Send an URL to the client where to send the payload Hopefully this will give us some more flexibility in the future. Signed-off-by: Michael Tremer --- diff --git a/src/web/uploads.py b/src/web/uploads.py index 122d03e5..9190b35c 100644 --- a/src/web/uploads.py +++ b/src/web/uploads.py @@ -103,6 +103,9 @@ class APIv1IndexHandler(base.APIMixin, base.BaseHandler): self.finish({ "id" : "%s" % upload.uuid, "expires_at" : upload.expires_at.isoformat(), + + # The URL the client should send the payload to + "url" : self.backend.url_to("/api/v1/uploads/%s" % upload.uuid), })