Do some debugging... echo $file_type and see what it's sending to the browser in the header. On Sat, Mar 7, 2009 at 9:48 AM, HodgesC_Yah <chodges@xxxxxxxxxxxxxxxxxxxxx>wrote: > Yeah I checked that but it does not fix anything. Still can't get the > thing to work. Any other ideas? > > thanks! > > --- In php-objects@xxxxxxxxxxxxxxx <php-objects%40yahoogroups.com>, José > Miguel Santibáñez A. <jms@...> wrote: > > > > > > > Hello: > > > > > > Maybe someone can help me with this. I'm providing my site the > > > ability to upload images. But the code I'm using will only display > > > the images in IE. Firefox and Safari don't show anything. Anyone > > > have any ideas why? > > > > > > > > // copy original image to thumbnail > > > imagecopyresampled($thumb, $im, 0, 0, 0, 0, $imgw, $imgh, > > > ImageSX($im), ImageSY($im)); > > > header("Content-Type: {$fileType}"); > > > // Output the image > > > imagejpeg($thumb,NULL,100); > > > > wrong content-type possible. If you send a imagejpeg, then: > > header("Content-Type: image/jpeg"); > > > > > > -- > > José Miguel Santibáñez > > jms@... > > > > > [Non-text portions of this message have been removed]