Upload a pattern