PHP: MoveUploadedFile -> name.jpg = imagecreatefromjpeg() ... is not a valid JPEG file in 
<p>I do have a problem: On my website, I allow user to upload an image in every format. Then, on the server I run MoveUploadedFile() and as param I give it a name with '.jpg' in the end. It gets saved and on Windows, I can properly open the image. But if I want to open it with 'imagecreatefromjpeg()' then the function returns "image.jpg is not a valid JPEG file in ...."</p>

<p>What do I have to do so this does not happen anymore?</p>

<p>Thanks for answers ;)</p>

<p>Regz, Flo</p>
