test upload directory