 <p>When the file is uploaded it is stored in the tmp folder, to perform any action on it you need to use the tmp path which can be accessed using <code>$_FILES['fotoname']['tmp_name']</code> , I think thats what you are looking for.</p>