How to check if file is selected
<p>I have file <code>$fileImage = $_FILES['fileCatImg'];</code>, everything works when I try to upload it, but how do I check if file is selected first? <code>if (isset($fileImage))</code> and <code>if (empty($fileImage))</code> are not working. One of them always returns true value, but other always returns false value.</p>
