Home arrow Forum

Remository Forum

 


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'                         )"                     );

  | | Sorry, you do not currently have permission to write here.

      Topics Author Date
    thread link
My customized bulk add files for remository
runitzme 2006/12/23 06:51
    thread link
thread link Re:My customized bulk add files for remository
ThaSniper 2008/09/19 18:54
    thread link
thread linkthread link Re:My customized bulk add files for remository
admin 2008/09/21 13:55

Menu

Login Form

Username

Password

Remember me
Password Reminder
No account yet?
Create one

Who is Online

Remository welcomes guests and registered users.

We have 35 guest online