runitzme
Karma: 0
|
My customized bulk add files for remository - 2006/12/23 06:51
Hey, a few days ago i made a custom bulkadd file component for Remository based on Mjaz autopopulate for Docman's code. But I have a few problems, it works perfectly..inserts into the database and everything...but when I try to downlaod it, the download always get cut off before it even starts. When i link it threw the remository's backend, it works...so i was wondering whats wrong and if anyone could help. I checked the database to compare the difference of the two files, but the values except for the name were the same...heres the SQL query of my code..
| Code: |
$time = date('Y-m-d');
$size = number_format(filesize("../downloads/".$file)/1024,2).' Kb';
$title = $check;
$title = stripExtension( $file );
$title = getNiceTitle( $title );
$database->setQuery(
"INSERT INTO aliro_downloads_files (
sequence,
realname,
islocal,
containerid,
filesize,
filedate,
userid,
filetitle,
registered,
submitdate
)
VALUES (
'$one',
'$file',
'$one',
'$catid',
'$size',
'$time',
'$one',
'$title',
'$zero',
'$time'
)"
);
|
|