Upload authorization fixes.