Forums

WordPress Plugin for Download Directory? (3 posts)

  1. jensd
    Member
    Posted 3 years ago #

    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!

  2. Lester Chan
    Member
    Posted 3 years ago #

  3. jensd
    Member
    Posted 3 years ago #

    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...

Topic Closed

This topic has been closed to new replies.

About this Topic