21278 Posts in 5728 Topics by 2599 members
|
Page:
1
|
Go to End | |
| Author | Topic: | 944 Views |
-
Add file upload types

10 August 2010 at 3:05pm
I noticed that by default .odt is not an allowed file upload. Where do you change the file types allowed for upload?
-
Re: Add file upload types

10 August 2010 at 8:11pm
I think something like the following might help... this means you have to intercept the field in getCMSfields and also not that these are case sensitive.... please look at sapphire\forms\FileField.php for more info....
$uploadField->setAllowedExtensions('odt');
-
Re: Add file upload types

11 August 2010 at 12:19am
An alternative solution would be to add this line
File::$allowed_extensions[] = 'odt';
to your mysite/_config.php.Cheers,
Christian
| 944 Views | ||
|
Page:
1
|
Go to Top |



