From 37b99073342abd212b8abcdcb00162cb1c9ac7e5 Mon Sep 17 00:00:00 2001 From: retoor Date: Tue, 26 Nov 2024 06:48:39 +0100 Subject: [PATCH] Minor snafu. --- src/rupload/app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rupload/app.py b/src/rupload/app.py index 6e87718..62557d3 100644 --- a/src/rupload/app.py +++ b/src/rupload/app.py @@ -243,7 +243,7 @@ async def handle_upload(request: web.Request): ) f.write(chunk) print(f"File {filename} uploaded successfully.") - uploaded_url = self.generate_upload_url(filename) + uploaded_url = request.app.generate_upload_url(filename) print(f"File {filename} is now available at: {uploaded_url}.") return web.HTTPFound( "/?message=File is succesfully uploaded and is available here:"