Optimization for folder upload for many folders and for slower network connections