Umbraco Forms custom file upload
# help-with-umbraco
c
Hi, I am doing a migration from v8 to v13 and we have a file upload custom Umbraco Forms Field Type. The v8 version inherits the Umbraco Forms Core FileUpload type and overrides the 'ValidateField' method. I'm sure inheriting from the core types used to be the standard approach. I would like to do the same in v13 but I can't seem to inherit from the core FileUpload field type anymore in order to utilise the additional logic I require for file upload and viewing the files in the backoffice. I am assuming these have been locked down with private access modifiers or am I missing something? Does anyone have any alternative approaches to achieve this? Thanks
j
Someone had a similar question recently! This answer should help you https://discordapp.com/channels/869656431308189746/1342499181507510282/1343002917971689524
c
@Jonathon Cove Thanks for the help!. That post led me to find the reason I was struggling. I hadn't realised there was a seperate package for the base field types:
Umbraco.Forms.Core.Providers
. In my search I somehow missed this page in the documentation which mentions it: https://docs.umbraco.com/umbraco-forms/13.latest/developer/extending/adding-a-type#overriding-default-providers-in-umbraco-forms Thanks again!
4 Views