fixed handling of types for directory upload