• I want to set up a section in my blog where people can download all kind of files and documents (PDFs, JPG, DOC, TXT, ZIP whatever…). Does anyone know a plugin that handles the upload, automatically recognizes the filetype and displays the files together with a description and a small filetype icon in a list?
    Thanks in advance!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter jensd

    (@jensd)

    Thanks, looks awsome.

    Tried it but I can’t seem to get it up and running with the old MySQL Version 4.0.22.

    First, activation doesn’t create the tables.
    When creating them manually with SQL I found at your forum:

    CREATE TABLE IF NOT EXISTS wp_downloads (
    file_id int(10) NOT NULL auto_increment,
    file tinytext,
    file_name text NOT NULL,
    file_des text NOT NULL,
    file_size varchar(20) NOT NULL default ”,
    file_category int(2) NOT NULL default ‘0’,
    file_date varchar(20) NOT NULL default ”,
    file_hits int(10) NOT NULL default ‘0’,
    file_permission tinyint(2) NOT NULL default ‘0’,
    PRIMARY KEY (file_id)
    ) TYPE=MyISAM ;

    everything seems to work until I upload a file:

    WordPress database error: [Column count doesn’t match value count at row 1]
    INSERT INTO hk_downloads VALUES (0, ‘/brownbound.zip’, ‘brownbound.zip’, ”, ‘64799’, 0, ‘1213454376’, ‘1213454376’, ‘1213454376’, 0, 0)

    The file itself is actually uploaded. Not displayed though, and no db records are written.

    Any ideas? Would be great, the plugin is exactly what I would love to use…

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘WordPress Plugin for Download Directory?’ is closed to new replies.