fixed the validation on parent pid for continuing to upload files.