title: Input file in wideimage
body: <p>I have these codes. In <code>form.html</code>:</p>
  
  <pre><code>&lt;form name="form2" method="post" action="lagarto.php" /&gt;
  &lt;input type="file" size="32" name="myimg" value="" /&gt;
  &lt;input type="submit" name="Submit" value="upload" /&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>and in <code>lagarto.php</code>:</p>
  
  <pre><code> &lt;?php 
  
  require( "./lib/WideImage.php");
  
  $myimg = $_FILES['myimg']['tmp_name'];  // &lt;-- Note this addition
  $image = WideImage::load($myimg);
  
  
  
  $image = WideImage::load($img);
  
  
  $image-&gt;output('jpg', 90);
  
      ?&gt;
  </code></pre>
  
  <p>It should show the image output but I got this error message:</p>
  
  <blockquote>
    <p>Notice: Undefined index: myimg in C:\Arquivos de
    programas\EasyPHP-5.3.9\www\wideimage-11.02.19-full\lagarto.php on
    line 6</p>
    
    <p>Fatal error: Uncaught exception
    'WideImage_InvalidImageSourceException' with message 'String doesn't
    contain image data.' in C:\Arquivos de
    programas\EasyPHP-5.3.9\www\wideimage-11.02.19-full\lib\WideImage.php:240
    Stack trace: #0 [internal function]: WideImage::loadFromString(NULL)
     #1 C:\Arquivos de programas\EasyPHP-5.3.9\www\wideimage-11.02.19-full\lib\WideImage.php(184):
    call_user_func(Array, NULL) #2 C:\Arquivos de
    programas\EasyPHP-5.3.9\www\wideimage-11.02.19-full\lagarto.php(8):
    WideImage::load(NULL) #3 {main} thrown in C:\Arquivos de
    programas\EasyPHP-5.3.9\www\wideimage-11.02.19-full\lib\WideImage.php
    on line 240</p>
  </blockquote>
  
  <p>Any idea?</p>
  
  <p>EDIT:
  I tried to add these lines to my code:</p>
  
  <pre><code>$_FILES = $HTTP_POST_FILES;
  $img = $FILES['myimg']['tmp_name'];
  </code></pre>
  
  <p>I tried even only one of the lines. And nothing changed.</p>