Welcome Guest, Not a member yet? Register   Sign In
not allowed filetype appears seemingly at random. what??
#1

[eluser]esuus[/eluser]
Hey Guys,
so I'm using CI 2.1.2 and I'm having serious issues with the uploading class.

Some GIFs it will upload just fine, some it just won't. Same with PDFs. One PDF I have downloaded twice. It's the exact same file. 81 KB small. One file it will upload just fine, every time, for the other file it will *always* say "The filetype you are attempting to upload is not allowed."

What's going on here?

Help would be much appreciated.

These are the settings that I call the function with:
Code:
$config['upload_path'] = $this->config->item('uploadfolder');
   $config['allowed_types'] = 'pdf|doc|docx|ppt|pptx|txt|wps|rtf|odp|xls|xlsx|cvs|mp3|wma|mp4|m4a|m4b|3gp|wav|flac|avi|mov|flv|mpeg|mpg|mp1|mp2|3gp|wmv|mkv|odt|ods|gif|jpg|jpeg|png|tiff|';
   $config['max_size'] = '63488'; // 62 Megabyte
   $config['remove_spaces'] = TRUE; // replaces spaces with underscores
   $config['encrypt_name'] = TRUE;

I tried again with less filetypes, just images and pdf, - no difference.
#2

[eluser]esuus[/eluser]
No idea, anyone?
#3

[eluser]esuus[/eluser]
Sad
#4

[eluser]solid9[/eluser]
I noticed your upload settings is incomplete.

I also removed the '|', try this codes below instead.
$config['allowed_types'] = 'pdf|doc|docx|ppt|pptx|txt|wps|rtf|odp|xls|xlsx|cvs|mp3|wma|mp4|m4a|m4b|3gp|wav|flac|avi|mov|flv|mpeg|mpg|mp1|mp2|3gp|wmv|mkv|odt|ods|gif|jpg|jpeg|png|tiff';





Theme © iAndrew 2016 - Forum software by © MyBB