1
I'm using Formulaire 3.2 and would like to include more file types for the file upload function. (At this point in time, Excel/xls files).
I saw this post
here and Philou said to hack the /modules/formulaire/admin/ele_upload.php file, and I did that, and updated the module, however it still doesn't accept Excel files. (I didn't understand the bit about line 165 in the index.php file... I took a look and didn't see a relationship to mime types.)
Here's what I've changed in the ele_upload.php:
$mime = new XoopsFormCheckBox (_AM_ELE_TYPEMIME, 'ele_value[2]', $tab);
$mime->addOption('pdf',' pdf ');
$mime->addOption('doc',' doc ');
$mime->addOption('txt',' txt ');
$mime->addOption('gif',' gif ');
$mime->addOption('mpeg',' mpeg ');
$mime->addOption('jpg',' jpg ');
$mime->addOption('zip',' zip ');
$mime->addOption('rar',' rar ');
$mime->addOption('xls',' xls ');
$form->addElement($mime);
Any ideas on what else needs to be added in order to add more file types to the upload function? Thanks in advance!
Kristine in Toronto
Everything is as it should be