Hai effettivamente verificato che non ti viene caricato il file?
Prova a farti stampare $_FILES['userfile']['tmp_name']