Welcome Guest, Not a member yet? Register   Sign In
The filetype you are attempting to upload is not allowed.
#1

[eluser]abada[/eluser]
when i upload doc or docx or xls

uploaded failed ??

i checked my mimes.php

and allowed ext

but files like pdf or any images ext. work !!!

why doc not working ??

mimes.php

Code:
'doc' => array('application/msword', 'application/octet-stream'),
'docx' => array('application/msword', 'application/octet-stream'),

thnx

#2

[eluser]InsiteFX[/eluser]
Try these...

Office 2007 mime types!

Apache .htaccess file add:

AddType application/vnd.openxmlformats .docx .pptx .xlsx

CodeIgniter mime types add: ( ./application/config/mimes.php
Code:
'docx' => 'application/vnd.openxmlformats',    // Word
'pptx' => 'application/vnd.openxmlformats',    // Power Point
'xlsx' => 'application/vnd.openxmlformats',    // Excel
#3

[eluser]abada[/eluser]
thanks InsiteFX
i`ll try it

but what about doc files

in 1.7.2 i can upload it with no problems

why i can`t in 2.1.0 !!!

#4

[eluser]abada[/eluser]
dosen`t work ??
Code:
'doc' => array('application/msword', 'application/octet-stream','application/vnd.ms-word','application/vnd.openxmlformats'),
'docx'  =>  array('application/msword','application/vnd.openxmlformats-officedocument.wordprocessingml.document','application/octet-stream','application/vnd.openxmlformats'),

any body help me ????
#5

[eluser]abada[/eluser]
when i type type of file

like work it appear application/octet-stream

and iam sure i putted application/octet-stream in mimes.php

but still not working ??
#6

[eluser]InsiteFX[/eluser]
The regular mime types should handle the word doc type.
#7

[eluser]abada[/eluser]
ya iam with u

but doesn`t work on real web server

but work on localhost

why ??

thanks InsiteFX
#8

[eluser]Saiyeek[/eluser]
I am facing with the same problem, Locally its fine, but when on remote server, The filetype you are attempting to upload is not allowed. is thrown. Any workaround?
#9

[eluser]InsiteFX[/eluser]
Check your server mime types you may need to add them in, you should be able to find them in your server control panel mine uses CPanel.
#10

[eluser]Saiyeek[/eluser]
Hello InsiteFX,
thanks for your reply. I checked mime types in cpanel and application/pdf is listed already.
Btw, I compared phpinfo() output from local and server, I saw mod_mime not loaded in the remote server. Can that be the problem?
Thanks in advance.




Theme © iAndrew 2016 - Forum software by © MyBB