Fix upload deletion and redirection.
Cleanup.