Update to dynamic uploaddir