Error when adding new field
I'm trying to add a new FileFieldDefinitionElement field to BlogBackendEditPost > Main Section but I get this error:
Property accessor 'IsMultiselect' on object 'Telerik.Sitefinity.Web.UI.Fields.Config.FileFieldDefinitionElement' threw the following exception:'Object reference not set to an instance of an object.'
SF 4.2, File system For App, Win 7, Chrome.
We confirm this is a bug. FileFieldDefinitionElement doesn't initialize it's default values properly. The issue is logged and will probably appear as a fix in SP. As a workaround you could actually add such field directly in the configuration files in App-Data.
But how exactly do you plan to use this field? Adding such field to the view of some content item doesn't automatically give the functionality for uploading and associating files to it. We currently have such fields in the Libraries but there is also custom server logic that handles what's going on when the file is uploaded and where it is kept and how it is associated with the content item.
the Telerik team
Thanks for your quick reply.
Basically I am trying to let a user select a blog post image from the file system that we have already uploaded to the server as we dont use the libraries because they are stored in the database.
We are still using 3.7 and I am wanting to make the move to 4.2, just getting my head around how our custom code transposes to the new version. The move from 3.7 to 4.2 is alot to get my head around, so I may have missed the purpose of the custom fields.
As an aside.... are there any plans to include the use of libraries that store media in the file system? This would be a great feature.
Hope this helps
Please accept my apologies for the late reply.
We'll discuss the idea of using libraries that store media in the file system and if it is accepted we'll think of implementing this in the future. Up to now you can use the workaround that Pepi suggested.
All the best,
the Telerik team