title: Safely upload gif images
body: <p>I'm wondering about the safety of this. I only wanna allow gif images with the maximum size of 64 Kbytes. Is it safe to use the accept attribute? i.e <code>accept="image/gif"</code></p>
  
  <p>The very little php:</p>
  
  <pre><code>if (isset($_REQUEST['upload'])) {
  move_uploaded_file($_FILES['file']['tmp_name'], '../images/logos/'.str_replace(" ", "_", $name).'.gif');
  }
  </code></pre>
  
  <p>My form looks like this:</p>
  
  <pre><code>&lt;form action="upload.php" method="post" enctype="multipart/form-data"&gt;
  &lt;input type="hidden" name="MAX_FILE_SIZE" value="65536"&gt;
  &lt;input type="file" name="file" size="40" accept="image/gif"&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>Now is it safe using the <code>accept</code> attribute?</p>