added support to upload with folders