From: Michael Tremer Date: Wed, 29 Jan 2025 17:13:27 +0000 (+0000) Subject: uploads: Return the received filename in the API response X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=32ceb990f862c730d3b47d263aa4bebf37be0e82;p=pbs.git uploads: Return the received filename in the API response Signed-off-by: Michael Tremer --- diff --git a/src/web/uploads.py b/src/web/uploads.py index 1458c2ce..91c31ee4 100644 --- a/src/web/uploads.py +++ b/src/web/uploads.py @@ -104,6 +104,9 @@ class APIv1IndexHandler(base.APIMixin, base.BaseHandler): "id" : "%s" % upload.uuid, "expires_at" : upload.expires_at.isoformat(), + # Filename + "filename" : upload.filename, + # The URL the client should send the payload to "url" : self.backend.url_to("/api/v1/uploads/%s" % upload.uuid), })