You can not select a [] file

edited April 2014 in Bug Reports
I created an assets directory called docs. Added it to my asset.php config file:
$config['assets_folders'] = array(
'images' => 'images/',
'css' => 'css/',
'js' => 'js/',
'pdf' => 'pdf/',
'swf' => 'swf/',
'media' => 'media/',
'captchas' => 'captchas/',
'docs' => 'docs/'
And also added the following to MY_fuel.php:
$config['editable_asset_filetypes'] = array(
'images' => 'jpg|jpeg|jpe|gif|png|zip',
'pdf' => 'pdf|zip',
'media' => 'mov|mp3|aiff|mpeg|zip',
'assets' => 'jpg|jpeg|jpe|png|gif|mov|mpeg|mp3|wav|aiff|pdf|css|zip',
'docs' => 'doc|docx|ppt|pptx|xls|xlsx|rtf|txt'

Yet from within the assets section of the admin I still get the javascript alert "You can not select a .docx file ..." when I try to upload a .docx file to docs/. The folder has write permissions and the proper ownership. I'm not sure what else could be causing this ... Any suggestions?


  • edited 6:31AM
    Try adding it to the 'assets' one as well. That is sort of the catch all used for selecting file assets to upload in the Assets module. The 'docs' file types will be checked on upload.
Sign In or Register to comment.