How to resolve Array to string conversion error
For the first question you can go to Administer - System Settings - Safe File Extensions and add .ods to the list there.
For the second one is $value['name'] actually a string or is it an array?