Results 1 to 3 of 3
  1. #1
    Join Date
    May 2009

    Unanswered: Need help with script please

    Hi all,

    I am setting up a "sendthisfile clone" site, and have it almost working. The problem is that it only allows me to send certain files...., and does'nt allow me to send mp3 or wav or even txt files. This is something that I would really like to be able to do. When I go to send an mp3, I get a error back that says:

    "Errors Returned While Uploading
    MIME type not allowed: application/x-unknown"

    Here is the Sql database code that I am using:

    create table fileinfo(
    id int not null auto_increment,
    idkey varchar(30) not null unique,
    dir varchar(30) not null unique,
    mime_type varchar(50),
    file_name varchar(200) not null,
    size bigint not null default '0',
    upload_time int default '0',
    no_of_dwnld int default '0',
    expire_time int default '0',
    max_dwnld int default '0',
    link_status tinyint default '1',
    recipient varchar(50) not null,
    sender varchar(50),
    primary key(id)

    create table configuration (
    conf_id int not null auto_increment,
    conf_name varchar(20) not null,
    conf_value text,
    conf_optional varchar(250),
    primary key(conf_id)

    create table admin(
    uid int not null auto_increment,
    uname varchar(15) not null unique,
    pwd varchar(15) not null,
    email varchar(50) not null,
    primary key(uid)

    create table adminlog(
    uid int(11) not null,
    timein int(11) not null,
    timeout int(11) default null,
    ip varchar(16) default null);

    insert into configuration(conf_id,conf_name,conf_value,conf_op tional) values(1,"MAX_SIZE","100024","100 MB")
    ,(3,"MAX_COUNT","5","a limited number of")
    ,(4,"MAX_TIME","7","7 Days")

    insert into admin(uid,uname,pwd,email) values(1,"admin","admin","");

    Is there any changes that could be made to this for it to allow me to send any type of files? I am very new to databases and would really appreciate any help you can give me.

    Thanking you in advance.


  2. #2
    Join Date
    Apr 2008
    Iasi, Romania
    Provided Answers: 3
    I am pretty sure that the auto_increment clause is from MySQL. In that case, you are in the wrong forum.
    Florin Aparaschivei
    DB2 9.7, 10.5 on Windows
    Iasi, Romania

  3. #3
    Join Date
    May 2009
    Sorry about that I will move it to the correct forum. Sorry about that



Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts