Made uploaddir dynamic