Gossamer Forum
Home : Products : DBMan SQL : Discussion :

File upload

Quote Reply
File upload
Has anyone sucessfully transfered the multiple file upload mod to dbmansql?

I am getting: Illegal division by zero at db.cgi line 1342
Line 1342 is bold

$newdirname = $in{$db_key};
if (!(-e $SAVE_DIRECTORY/$newdirname)) {
$dirsuccess = mkdir "$SAVE_DIRECTORY/$newdirname", 0777;
}
else {
opendir (GRAPHIC, $SAVE_DIRECTORY/$newdirname) or &cgierr("unable to open directory. Reason: $!");
@files = readdir(GRAPHIC);
closedir (GRAPHIC);
foreach $file (@files) {
next if ($file =~ /^\./); # Skip "." and ".." entries..
next if ($file =~ /^index/); # Skip index.htm type files..
$prev_files;
@stats = stat "$SAVE_DIRECTORY/$newdirname/$file";
$prev_bytes =$stats[7];
}
}
Subject Author Views Date
Thread File upload johnr 1841 Sep 27, 2000, 10:52 AM
Thread Re: File upload
johnr 1768 Oct 4, 2000, 4:41 PM
Post Re: File upload
TheFox 1675 Dec 28, 2000, 10:46 PM