Answers.Body: <p>This does <strong>not work</strong> and has never.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2021-10-30T19:54:43.513Z
Answers.LastActivityDate: 2021-10-30T19:54:43.513Z
Answers.UserDisplayName: nielo
Body: <p>I attached a new custom group to entity type group and added a field of type file. When editing the group settings and fill in a file, it is posted without errors and notification bubble confirms success. But there is no file uploaded.</p>
  <p>No error logs even with debugging enabled, file tmp folder is checked and I successfully tried another custom file field attached to entity contact.</p>
  <p>Just tried on <a href="https://dmaster.demo.civicrm.org/" rel="nofollow noreferrer">https://dmaster.demo.civicrm.org/</a> - same misbehavior.</p>
  <p>Looked at the code and it seems that the posted file info is not getting into the params array. Although the posted name is of correct format <code>custom_123_21313</code> the <code>packages/HTML/QuickForm/Controller.php-&gt;exportValues</code> gets &quot;MAX_FILE_SIZE&quot; as key for the custom field. Could it be that <a href="https://lab.civicrm.org/dev/core/-/blob/master/CRM/Group/Controller.php" rel="nofollow noreferrer">https://lab.civicrm.org/dev/core/-/blob/master/CRM/Group/Controller.php</a> 's overridden custom file field preparation causes this error?</p>
  <p>Civi and Drupal are current versions.</p>
  <p>Core Team, do you have a clue? How may I investigate further? Where is the $_POST stuff prepared prior to postProcess in <code>CRM/Group/Form/Edit.php</code>?</p>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2021-09-27T12:04:59.780Z
Comments.Text: Opened an issue: https://lab.civicrm.org/dev/core/-/issues/2859
Comments.UserDisplayName: nielo
Tags: <custom-fields><files>
Title: Custom File field in custom group used by CiviCRM entity group not saving
ThreadText: # Custom File field in custom group used by CiviCRM entity group not saving
  
  (Asked by: username_0 on 2021-09-15)
  
  I attached a new custom group to entity type group and added a field of type file. When editing the group settings and fill in a file, it is posted without errors and notification bubble confirms success. But there is no file uploaded.
  
  No error logs even with debugging enabled, file tmp folder is checked and I successfully tried another custom file field attached to entity contact.
  
  Just tried on <https://dmaster.demo.civicrm.org/> - same misbehavior.
  
  Looked at the code and it seems that the posted file info is not getting into the params array. Although the posted name is of correct format `custom_123_21313` the `packages/HTML/QuickForm/Controller.php->exportValues` gets "MAX\_FILE\_SIZE" as key for the custom field. Could it be that <https://lab.civicrm.org/dev/core/-/blob/master/CRM/Group/Controller.php> 's overridden custom file field preparation causes this error?
  
  Civi and Drupal are current versions.
  
  Core Team, do you have a clue? How may I investigate further? Where is the $\_POST stuff prepared prior to postProcess in `CRM/Group/Form/Edit.php`?
  
  **Tags:** custom-fields, files
  
  > **Comments:**
  > **username_0**: Opened an issue: https://lab.civicrm.org/dev/core/-/issues/2859  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_0 on 2021-10-30. Score: 0 | Accepted answer
  
  This does **not work** and has never.
  
  
  ---
  
  