Answers.Body: <p>I figured it out -- I'll leave the question up in case anyone else runs into the issue. </p>
  
  <p>I had Assets fields in my Matrix, but I also had a SuperTable field in the Matrix which contained an image. That was the one causing the error. Changing the subfolder path to <code>{owner.owner.section.handle}</code> solved the problem.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-10-27T18:39:17.317Z
Answers.LastActivityDate: 2017-10-27T18:44:18.597Z
Answers.LastEditDate: 2017-10-27T18:44:18.597Z
Answers.UserDisplayName: artmem
Body: <p>I have a Matrix field which contains several assets fields. Each has the dynamic subfolder path set to <code>{owner.section.handle}</code>, so I can reuse the Matrix in multiple sections, but keep the assets organized.</p>
  <p>When I try to save an entry with an image, i get the error:</p>
  <blockquote>
  <p>Craft\InvalidSubpathException</p>
  <p>Could not resolve the subpath “{owner.section.handle}”</p>
  </blockquote>
  
Tags: <matrix><error-message><subfolder>
Title: Can't save entries with dynamic subfolder path in Matrix
ThreadText: # Can't save entries with dynamic subfolder path in Matrix
  
  (Asked by: username_0 on 2017-10-27)
  
  I have a Matrix field which contains several assets fields. Each has the dynamic subfolder path set to `{owner.section.handle}`, so I can reuse the Matrix in multiple sections, but keep the assets organized.
  
  When I try to save an entry with an image, i get the error:
  
  > Craft\InvalidSubpathException
  >
  > Could not resolve the subpath “{owner.section.handle}”
  
  **Tags:** matrix, error-message, subfolder
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_0 on 2017-10-27. Score: 1
  
  I figured it out -- I'll leave the question up in case anyone else runs into the issue.
  
  I had Assets fields in my Matrix, but I also had a SuperTable field in the Matrix which contained an image. That was the one causing the error. Changing the subfolder path to `{owner.owner.section.handle}` solved the problem.
  
  
  ---
  
  