bug fix for uploading folders and drag and drop