upload figure directory