From: Thomas K. <tk...@us...> - 2001-10-17 01:53:15
|
I figured out the Windows 2000 file upload issue. Since most non-Unix operating systems (including Windows 2000) have a hard time differentiating between text and binary files, we need to binmode the file handle before we write to it. So, in the admin/index.cgi, go to the uploadFile2 subroutiune (about line 1046) the actual upload code is replace_file($uploadDest, sub { local *FH=shift; my $buffer; while (my $bytesread=read($uploadFileName,$buffer,1024)) { print FH $buffer; } }) or bail("couldn't upload file \"$uploadDest\":", $!); add a line after " local *FH=shift;" to say "binmode (FH);" so, the upload code looks like this: replace_file($uploadDest, sub { local *FH=shift; binmode (FH); my $buffer; while (my $bytesread=read($uploadFileName,$buffer,1024)) { print FH $buffer; } }) or bail("couldn't upload file \"$uploadDest\":", $!); And it should work! From what I've read, the binmode function works fine on Unix, but does nothing. Can anyone confirm this? If Unix simply ignores it, we can just add it to the source, and not worry about it anymore. Thanks! Tom Keegan ----- Original Message ----- From: "John Moose" <mo...@mu...> To: "Thomas Keegan" <tk...@us...> Sent: Thursday, August 30, 2001 9:31 AM Subject: Fwd: Please help > Any ideas? > > John > > Begin forwarded message: > > > From: Mohammad Alaoni <al...@ya...> > > Date: Thu Aug 30, 2001 09:19:13 AM US/Eastern > > To: mo...@mu... > > Subject: Please help > > > > Dear John, > > > > First of all i would like to thank you for your great > > software and the time you spent devloping it. Second i > > was able to run IDS on Windows 2000 and everything > > went smooth till i logged in as admin & tried to > > upload an Image to a folder that i created. this is > > the error message that shows up in the browser after > > the upload. > > > > Warning 315: Bogus DQT index 15 > > (../albums/family/sami.jpg) [No such file or > > directory] at ../idsShared.pm line 611. > > > > P.S photo's can be processed by IDS and generated if i > > droped them directly into the folder but not uploading > > them by the admin interface. > > > > Thanx again for helping. > > > > > > Al-Mutairi > > > > > > __________________________________________________ > > Do You Yahoo!? > > Get email alerts & NEW webcam video instant messaging with Yahoo! > > Messenger > > http://im.yahoo.com > |