0

I have allowed extensions gif/png/xls/xlsx. All of them work on local server. On live server only gif and png works no excel files.

I read about this bug in codeigniter 2.1.0 which was causing such behavior but I am using version 2.1.4. and as said it works on local server so I assume this should not be the causing problem.

That leaves me with the idea that my host account on godaddy does not allow excel uploads. But that also seems to be unreasonable to me. Does anybody have an idea? Thanks in advance.

1 Answer 1

3

Did you checked the extension? Please check when you post the file and check. Also check the mime config file. If the extension not found in that file add there. something similar to this can found here

Sign up to request clarification or add additional context in comments.

1 Comment

yep thanks for that...I guess not all of the following is necessary as it includes csv things but it made it work: 'xlsx' => array('application/vnd.openxmlformats-officedocument.spreadsheetml.sheet', 'application/zip', 'application/vnd.ms-excel', 'text/anytext', 'text/plain', 'text/x-comma-separated-values', 'text/comma-separated-values', 'application/octet-stream', 'application/vnd.ms-excel', 'application/x-csv', 'text/x-csv', 'text/csv', 'application/csv', 'application/excel', 'application/vnd.msexcel'),

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.