I’m using the imperavi-redactor ext. So I can’t change the name easily I guess. I think it’s weird why they changed it in 1.1.14 this way. getInstancesByName, that suggests that you can get an Isantansce by name, not by array name.
Yes I misunderstood, and I changed my reply in the meantime.
For the record, I’ve changed it in the redactor widget. I don’t like to do that because I have to keep track of all these changes when I update the extension. But now it works, so the file name always has to be an array I understand.
edit: one more edit. I see in the latest version of the redactor widget, the name of the file input is not hardcoded anymore, but can be set in the config. That’s great!
If you’re only uploading one file at a time, you can use “file” as the form field name and the getInstanceByName() method instead of getInstancesByName().