fix error with empty folder uploading on Google Chrome