Fix nested folder issue for simple uploader