Properly confirm pdf upload cancel in all places when leaving page

[finishes #59571764]
[fixes #60990024]