[eluser]Unknown[/eluser]
Hi,
I had some problems when trying to upload zip and xml files and it would give me the following error :
The format of this file is invalid.
However, i had no problems with the application on localhost (the same files!)
i had this problem only in the application hosted on a OVH server !
I declared the allowed types in my config.php file :
Code:
$config['allowed_types'] = 'pdf|doc|docx|xls|xlsx|ppt|pptx|zip|rar|gif|jpg|png|rtf';
mimes.php :
Code:
'xls' => array('application/excel', 'application/vnd.ms-excel', 'application/msexcel'),
'zip' => array('application/x-zip', 'application/zip', 'application/x-zip-compressed'),
'xlsx' => array('application/excel', 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet'),
Sorry for my english!
Thank you in advance!