fix issue: cap deploy would flush previous upload files