Allowing filetypes to upload

edited February 2014 in Share
I recently tried to allow our client to upload CSV and ZIP files by adding them to $config['editable_asset_filetypes'] in my MY_fuel.php file in the config folder. I thought I had gotten it working but now I cannot upload regular images (PNG and JPG). They are listed in the allowed file types (I'll paste the whole code below) so why would they now not be uploadable? I now get this error:

You cannot select a .jpg file.
Try again...

When I take the editable_asset_filetypes and it goes back to default I am able to upload images again. Was there another area I needed to adjust once adding this?

// specifies what filetype extensions can be included in the folders
$config['editable_asset_filetypes'] = array(
'images' => 'jpg|jpeg|jpe|gif|png|zip',
'pdf' => 'pdf|csv|zip',
'media' => 'mov|mp3|aiff|mpeg|csv|zip',
'assets' => 'jpg|jpeg|jpe|png|gif|mov|mpeg|mp3|wav|aiff|pdf|css|csv|zip'
);

Comments

  • edited 7:03AM
    Are you getting this error in the Assets module and if so, what folder are you trying to upload to?
  • edited 7:03AM
    Yes and uploading to the images folder
  • edited 7:03AM
    Hmm... I'm having a hard time replicating the issue. I locally tested by changing the editable_asset_filetypes configuration to what you listed above and it uploaded a jpg image OK. I would perhaps do some debugging in the CI Upload class in the Upload::is_allowed_filetype() method
Sign In or Register to comment.