Minor snafu.
All checks were successful
RUpload build / Build (push) Successful in 1m5s

This commit is contained in:
retoor 2024-11-26 06:48:39 +01:00
parent d79664fdc5
commit 37b9907334

View File

@ -243,7 +243,7 @@ async def handle_upload(request: web.Request):
) )
f.write(chunk) f.write(chunk)
print(f"File {filename} uploaded successfully.") 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}.") print(f"File {filename} is now available at: {uploaded_url}.")
return web.HTTPFound( return web.HTTPFound(
"/?message=File is succesfully uploaded and is available here:" "/?message=File is succesfully uploaded and is available here:"