title: file name cannot be empty error while upload image
body: <blockquote>
    <p>Warning: file_get_contents(): Filename cannot be empty Warning:
    getimagesize(): Filename cannot be empty</p>
  </blockquote>
  
  <p>error show like this and this is  my code</p>
  
  <pre><code>else {
    $image = addslashes(file_get_contents ($_FILES['image'] ['tmp_name']));
    $image_name = addslashes($_FILES['image']['name']);
    $image_size = getimagesize($_FILES['image']['tmp_name']);
  }
  </code></pre>