bu şekilde iki tane inputum var post methodu ile post edildikten sonra

name= dosya olan input içeriği dolu gelmişse veya boş gelmişse diye kontrol etmek istiyorum.

<input type="file" name="dosya" />
<input type="text" name="text" />

if ($_POST['dosya'])
fakat işe yaramıyor.

Dosya seçildi mi seçilmedi mi nasıl anlayabilirim?