Forum Moderators: coopster & phranque

Message Too Old, No Replies

CGI form corrupts image uploads

         

Katie_Venra

7:37 pm on Mar 6, 2005 (gmt 0)

10+ Year Member



Well, im stuck.

I use an old links directory system called links2, its been slightly modified with an image attach upload section so peeps can add there standard banners.

It worked fine for years on an old nix server, now, since we have moved i have had to host the links directory on my home machine. Everything else is working just fine, forms are returning, pages for the links directory are being built email is being sent out but there is one thing that doesnt work....the image upload.

Either the file's colours are corrupt (colours are all jumbled) or the file just wont open, however the file size in each case is correct so far as i can see.

I thought it might have been just that particular links directory script, so i tried a stand alone one...same thing happens. However...it uploads images fine with a full php script. So it looks like it something to do with CGI/PERL.

SPECS...

OS: Windows XP - Pro SP1
Apache 2.0.53
ActivePerl-5.8.6.811
php-5.0.3-Win32

All latest releases, whole lot was just installed and configured 12 hours ago :)

coopster

9:59 pm on Mar 6, 2005 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



WinXP and Apache? More than likely a configuration issue. See message #3 in Installing PHP5 Under Windows XP and Apache [webmasterworld.com].

Katie_Venra

10:38 pm on Mar 6, 2005 (gmt 0)

10+ Year Member



Tried it, restarted apache, the images are still corrupt.

Katie_Venra

11:03 pm on Mar 6, 2005 (gmt 0)

10+ Year Member



Thanks :)

Ya got me thinking about configs, im on a windows server now...i need to include the binmode write out :) Everythings working fine :)