Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Hi i know the upload field datatype is not yet compatable with the DataType Grid, however i was hoping to egt some guidance as to how to go about adding this in.
I have started by adding in an extension function (UploadFieldDataTypeFunctions) that implement the IDataTypeFunctions<umbraco.editorControls.uploadfield.DataTypeUploadField> interface.
Additionally i have added in code to the DataTypeExtensions class to the methods ToDtgString, ConfigureForDtg however i am getting Nullreference errors.
Any guidance would be much appreciated
Managed to dig a little deeper in the umbraco core and it seems like the FileHandlerData is giving the error .... becuase the property id is 0. not sure how to go forward on this other than wirting a custom file upload data type becuase I would need to create a folder (based on the property id) and then create sub folders (or change the file name during save) to avoid overwritting files ...
Any direction would be good.
Awesome that you´re trying to help extend DTG!
I need to look more into it, but it should be possible to get it to work.
is working on a reply...
Write your reply to:
Image will be uploaded when post is submitted