Welcome Guest, Not a member yet? Register   Sign In
Upload File library does not suppory doc files

Hello There , i started to work on CI . but when i was trying to work on Upload File Library i figured that it does accept the regular file types such as doc , docx, ppt .. So on ..

So any ideas ? Or its dedicated to images ?

Thanks a lot


Ik hope you've read this,
as you can see
$config['allowed_types'] = 'gif|jpg|png';

can be changed to any given extension.
make sure you add the appropriate mime type in system/application/config/mimes.php
if it still does not work, make sure you output the error message, see the user manual how to do that.


Hello .. I did add the extensions to the allowed types ..
but when try to upload i get these errors :
[A PHP Error was encountered

Severity: Notice

Message: getimagesize() [function.getimagesize]: Read error!

Filename: libraries/Upload.php

Line Number: 569]

and the message is : The filetype you are attempting to upload is not allowed.


what kind of file are you trying to upload?
$config['max_width']  = '1024';
$config['max_height']  = '768';
these config items because you they apply to image files.


Post code.

Theme © iAndrew 2016 - Forum software by © MyBB