• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
upload problem

#1
[eluser]dimis[/eluser]
I have an upload form for pdf files.
I have this code
Code:
$config['upload_path'] = './pdf/';
       $config['allowed_types'] = 'pdf';
        $this->load->library('upload', $config);
        if ( ! $this->upload->do_upload())
        { die( $this->upload->display_errors());          
        }
        else
        {.....}
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?
Dimis

#2
[eluser]dimis[/eluser]
I upload the files with Opera and IE, there is a firefox related problem.
Dimis

#3
[eluser]Yash[/eluser]
MIME Type needs to defined.

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

#4
[eluser]dimis[/eluser]
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?
Dimis


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.