This commit is contained in:
parent
d79664fdc5
commit
37b9907334
@ -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:"
|
||||||
|
Loading…
Reference in New Issue
Block a user