Invalid file types (upload xls/xlsx) |
Sorry for my bad english, because I speak on other language.
![]() I have a next problem: 1. On two computers installed the same server (denwer) with same versions. 2. I copied all folder with my project and his base from one computer to another. 3. My code contains validation of mime types of uploading files (I use upload library + form validation). PHP Code: $config['allowed_types'] = 'txt|csv|xlsx|xls'; And it works excellent ![]() ![]() ![]() In mimes.php there are .xlsx and .xls by default PHP Code: 'xlsx' => array('application/vnd.openxmlformats-officedocument.spreadsheetml.sheet', 'application/zip', 'application/vnd.ms-excel', 'application/msword', 'application/x-zip'), I tried upload any xlsx/xls files in other scripts, that don't use Codeigniter, and there files upload success. So I think that webserver is not guilty. I don't understand what should I do? Please Help!!!! ![]() |
Messages In This Thread |
Invalid file types (upload xls/xlsx) - by razorg1991 - 12-28-2015, 06:49 AM
RE: Invalid file types (upload xls/xlsx) - by Happy Camper - 12-28-2015, 12:28 PM
RE: Invalid file types (upload xls/xlsx) - by webcomfort - 12-28-2015, 01:01 PM
Invalid file types ( xls/xlsx) - by edwards142 - 01-17-2017, 03:39 AM
|