Fix redirection after uploading ressource file.