Fix verification on upload into a folder

@alex-deaconu please review