test directory upload