use params option for directory uploading