func (fv *FieldValue) AddFile(name, ctype string, content []byte) error {
	if fv.field == nil {
		panic("nil field? Did you set the note's model after load?")
	}
	if fv.field.Type == TextField {
		return errors.New("Text fields do not support attachments")
	}
	return fv.files.AddFile(name, ctype, content)
}
// AddFile adds a file of the specified name, type, and content, as an attachment
// to be used by the FieldValue.
AddFile adds a file of the specified name, type, and content, as an attachment
to be used by the FieldValue.
// AddFile adds a file of the specified name type and content as an attachment // to be used by the FieldValue .
func (fv *FieldValue) AddFile(name, ctype string, content []byte) error {
	if fv.field == nil {
		panic("nil field? Did you set the note's model after load?")
	}
	if fv.field.Type == TextField {
		return errors.New("Text fields do not support attachments")
	}
	return fv.files.AddFile(name, ctype, content)
}
func ( fv * FieldValue ) AddFile ( name , ctype string , content [ ] byte ) error { if fv . field == nil { panic ( " " ) } if fv . field . Type == TextField { return errors . New ( " " ) } return fv . files . AddFile ( name , ctype , content ) }
AddFile adds a file of the specified name, type, and content, as an attachment
to be used by the FieldValue.
AddFile adds a file of the specified name type and content as an attachment to be used by the FieldValue .