Image upload format
<p>I have a form for uplading photo. That photo should be either <code>.jpg</code>, <code>.jpeg</code>, <code>.png</code>, or <code>.bmp</code>. When I am trying to upload an image, or photo, then it will stored in a temporary folder and the name of the image/photo should be the user_id of the form. Till yet am done..</p>

<p>But my problem is that,  </p>

<ol>
<li>only the <code>.jpg</code> file is uploaded and displayed and when I try to upload the other type, then it will stored in temporary folder, and it does not displayed.</li>
</ol>
