fix upload redirection