fix bugs with folder upload, ignore files that already exist