Fix selecting large directories for uploading

REVIEW: 120927