title: TYPO3 FAL in Flexform
body: <p>I have a flexform with following code:</p>
  
  <pre><code>&lt;image&gt;
      &lt;TCEforms&gt;
          &lt;label&gt;LLL:EXT:my_slider/Resources/Private/Language/locallang.xlf:flexform.slider.main.slider.image&lt;/label&gt;
          &lt;config&gt;
              &lt;type&gt;group&lt;/type&gt;
              &lt;internal_type&gt;file&lt;/internal_type&gt;
              &lt;allowed&gt;jpg, jpeg, gif, png&lt;/allowed&gt;
              &lt;show_thumbs&gt;1&lt;/show_thumbs&gt;
              &lt;minitems&gt;0&lt;/minitems&gt;
              &lt;maxitems&gt;1&lt;/maxitems&gt;
              &lt;size&gt;1&lt;/size&gt;
          &lt;/config&gt;
      &lt;/TCEforms&gt;
  &lt;/image&gt;
  </code></pre>
  
  <p>Until now this worked. But now in TYPO3 10 I get this error:</p>
  
  <blockquote>
    <p>TCA internal_type of field "image" in table tt_content must be set to "db" or "folder".</p>
  </blockquote>
  
  <p>How can I resolve this? How can I migrate my flexform to FAL? I've testet a few solutions but they ended in:</p>
  
  <blockquote>
    <p>Invalid flex form data structure on field name "pi_flexform" with element "image" in section container "sliderConfiguration": Nesting inline elements in flex form sections is not allowed. </p>
  </blockquote>
  
  <p>if i write</p>
  
  <pre><code>&lt;el&gt;
      &lt;settings.slider type="array"&gt;
      &lt;title&gt;LLL:EXT:my_slider/Resources/Private/Language/locallang.xlf:flexform.slider.main.slider&lt;/title&gt;
      &lt;type&gt;array&lt;/type&gt;
      &lt;section&gt;1&lt;/section&gt;
      &lt;el&gt;
          &lt;sliderConfiguration&gt;
              &lt;type&gt;array&lt;/type&gt;
              &lt;title&gt;LLL:EXT:my_slider/Resources/Private/Language/locallang.xlf:flexform.slider.main.slider.slide&lt;/title&gt;
              &lt;el&gt;
                  &lt;media&gt;
                      &lt;!-- https://stackoverflow.com/questions/47554243/how-to-add-cropvariants-to-an-image-field-in-typo3-flexform --&gt;
                      &lt;TCEforms&gt;
                          &lt;label&gt;
                              LLL:EXT:va_template/Resources/Private/Language/locallang.xlf:content_element.backgroundtext.settings.image
                          &lt;/label&gt;
                          &lt;config&gt;
                              &lt;type&gt;inline&lt;/type&gt;
                              &lt;minitems&gt;1&lt;/minitems&gt;
                              &lt;maxitems&gt;1&lt;/maxitems&gt;
                              &lt;appearance type="array"&gt;
                                  &lt;enabledControls type="array"&gt;
                                      &lt;delete&gt;1&lt;/delete&gt;
                                      &lt;dragdrop&gt;1&lt;/dragdrop&gt;
                                      &lt;new&gt;0&lt;/new&gt;
                                      &lt;hide&gt;1&lt;/hide&gt;
                                      &lt;info&gt;1&lt;/info&gt;
                                  &lt;/enabledControls&gt;
                                  &lt;fileUploadAllowed&gt;1&lt;/fileUploadAllowed&gt;
                                  &lt;headerThumbnail type="array"&gt;
                                      &lt;field&gt;uid_local&lt;/field&gt;
                                      &lt;height&gt;100c&lt;/height&gt;
                                      &lt;width&gt;100&lt;/width&gt;
                                  &lt;/headerThumbnail&gt;
                                  &lt;useSortable&gt;1&lt;/useSortable&gt;
                              &lt;/appearance&gt;
                              &lt;foreign_field&gt;uid_foreign&lt;/foreign_field&gt;
                              &lt;foreign_label&gt;uid_local&lt;/foreign_label&gt;
                              &lt;foreign_match_fields type="array"&gt;
                                  &lt;fieldname&gt;media&lt;/fieldname&gt;
                              &lt;/foreign_match_fields&gt;
                              &lt;foreign_selector&gt;uid_local&lt;/foreign_selector&gt;
                              &lt;foreign_sortby&gt;sorting_foreign&lt;/foreign_sortby&gt;
                              &lt;foreign_table&gt;sys_file_reference&lt;/foreign_table&gt;
                              &lt;foreign_table_field&gt;tablenames&lt;/foreign_table_field&gt;
                          &lt;/config&gt;
                      &lt;/TCEforms&gt;
                  &lt;/media&gt;
  </code></pre>
  
  <p>then i get this error</p>
  
  <blockquote>
    <p>Invalid flex form data structure on field name "pi_flexform" with element "media" in section container "sliderConfiguration": Nesting inline elements in flex form sections is not allowed.</p>
  </blockquote>