remove unused exit()
adding parentId to file info array
fix folder upload in js