Welcome Guest, Not a member yet? Register   Sign In
upload problem

I have an upload form for pdf files.
I have this code
$config['upload_path'] = './pdf/';
       $config['allowed_types'] = 'pdf';
        $this->load->library('upload', $config);
        if ( ! $this->upload->do_upload())
        { die( $this->upload->display_errors());          
I upload a pdf file but there is this error
Quote:The filetype you are attempting to upload is not allowed.
At my xamplite setup this code work ok, what is wrong?
What extension Have I to give?

I upload the files with Opera and IE, there is a firefox related problem.

MIME Type needs to defined.

Please search forum for this.There are dozens of similar threads.

Now I have this problem, I upload the file with IE, I see that at ftp program but when I try to download with CI the downloaded file is damage and the pdf is not exist anymore at server!
I change at 0777 with cmod at code,I see that with ftp program.
At my xamp all is ok. What is wrong?

Theme © iAndrew 2016 - Forum software by © MyBB