added option for folder selection in upload field