This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.
siraj60540
mrisolino said:
Hi guys! I'm reading other post and I found the fix from builder doc:
Note: some form controls, for example the -file upload control-, require a relation to be created in the model class -manually-. The relation name should be entered in the Field name property. Please read the Forms Documentation for details about specific form controls.
So, i just add into my model
public $attachOne = [ 'fileupload1' => 'System\Models\File' ];
And its running..
Best! Martin
in which model ? and where it located ?
My model file:
fields: title: label: Title
span: left
type: text
total_enents:
label: 'Total Events'
span: right
type: number
loacation:
label: Location
span: left
type: text
start_date:
label: 'Start Date'
mode: datetime
span: auto
type: datepicker
end_date:
label: 'End Date'
mode: datetime
span: left
type: datepicker
brochure:
label: Brochure
mode: file
useCaption: true
thumbOptions:
mode: crop
extension: auto
span: auto
type: fileupload
Last updated
1-2 of 2