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:"