Forums

PHP

This topic is locked

wrong extension on uploaded image ..

Posted 26 Jun 2006 08:48:12
1
has voted
26 Jun 2006 08:48:12 David FARNDON posted:
odd one this .. I am using Pure PHP Upload 2.1.3. and Smart Image processor 1.0.4 to allow a client to upload banners to their site. the CMS I have put together in DW8 allows them to upload everything to a MySQL and this works fine. It uploads, resizes .. everything .. fine ..

They are then hopped back to an admin screen which lists all the banners, with a thumbnail image of the banner (created by the Smart Image Processor)... problem is that the thumbnail is a jpg. file (determined by Smart Image Processor) and the returned thumbnail is trying to display a .gif (the wrong file type) and so I'm getting the little red cross of uncertainty rather than the image. How do I tell the admin page to display a jpg file .. this is the code for the banner admin page .. hope it makes sense to you!

If I manually change the file to a jpg it appears .. so everything is where it should be .. just the file type it's looking for is wrong.

<img src="<?php echo Thumbnail($row_bannerlist['image'],"suffix","_small"; ?>" border="0" onclick="MM_openBrWindow('<?php echo $row_bannerlist['image']; ?>','IMAGE','scrollbars=yes,width=510,height=80')" />

Replies

Replied 30 Jun 2006 15:30:11
30 Jun 2006 15:30:11 Patrick Woldberg replied:
There are newer versions of both extensions, perhaps you should try them first.

--------------------------------------------------
Patrick Woldberg
Web Developer at Dynamic Zones
Administrator at DMXzone.com, FLzone.net, FWzone.net and DNzone.com
--------------------------------------------------
Replied 30 Jun 2006 16:03:57
30 Jun 2006 16:03:57 David FARNDON replied:
Thanks Patrick .. I'll give the update a go (I had thought I'd got the latest version .. but I see I am 0.0.1 behind)

David

Reply to this topic