pdf upload

See all posts Reply

pdf upload new!
by Vali Oancea, 16 years, 10 months ago
Hello !

I'm using this script and I'm very glad to say is the best. The problem is, when I try to upload a pdf file, from a pc with windows Xp is no problem, from a computer with vista is an error: Incorrect type of file

line 2593 to 2598:
if (!$allowed) {
  $this->processed = false;
  $this->error = $this->translate('incorrect_file');
} else {
  $this->log .= '- file mime OK : ' . $this->file_src_mime;
}

I don't know where is the problem. Can you help me please?

Thank you in advance.Reply
Re: pdf upload new!
by colin, 16 years, 10 months ago
Try adding application/force-download as an allowed MIME type.Reply
Re: pdf upload new!
by Vali Oancea, 16 years, 10 months ago
ok, Thank you, is all right now.Reply