Answers.Body: <p>When you create the Custom Field Set for contacts*, you can check the box that says "Does this Custom Field Set allow multiple records?":</p>
  
  <p><img src="https://i.sstatic.net/YpWRc.jpg" alt="Custom Field Set / Multiple records"></p>
  
  <p><a href="http://book.civicrm.org/user/current/organising-your-data/custom-fields/" rel="nofollow noreferrer">From the book</a>:</p>
  
  <blockquote>
    <p><strong>Multiple record fieldsets</strong></p>
    
    <p>By default custom data sets have a 'one-to-one' relationship to the
    entity they are attached to. For example, one field set for a person's
    physical attributes which contains one field for their height and one
    for their eye colour will be attached to one individual record. This
    makes sense because we only ever need to record one eye colour and one
    height for each person.  However, in certain circumstances, we want to
    record multiple custom field sets for a single contact, for example,
    when recording a person's educational history. In this case, a single
    person may have multiple educational degrees, so a custom field set
    about educational history, which contains fields for subject,
    institution, and grade, should allow multiple records, and this is
    what multiple record fieldsets allow.</p>
    
    <p>You can only add multiple record field sets to contacts - you can't
    add them to other entities. To use this option, select the "Does this
    Custom Field Set allow multiple records?" option. A few things to bear
    in mind when creating mutiple record custom field sets:</p>
    
    <ul>
    <li>Multiple data applies to the whole field set, not to individual fields.</li>
    <li>Multiple data be can only be added to Contacts. It cannot be added to Activities, or Contributions, etc. </li>
    <li>Mutiple data cannot currently be exported</li>
    <li>Before deciding to model something as a multiple value custom field set, you may wish to consider whether it could or should be modelled
    as an activity. For example, an educational degree could be an
    activity with custom data added.</li>
    </ul>
  </blockquote>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-05-26T15:33:16.677Z
Answers.Text: Yeah, that correct.  I have awared about this but there my issue coming in.  I have to create an file upload field to attach as many file as user wants.  i.e. we know that only civicrm field sets can be set as 'multiple data'. But what if we want an single custom field to upload multiple file ? It's an strong requirement.
Answers.UserDisplayName: Juyal Jee
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-05-26T20:29:43.953Z
Answers.Text: The only way I know of is to allow multiple files is to create a profile (with only the single field in it if it's the only field that should be multiple). If anyone else knows another way, I'll be interested, too.
Answers.UserDisplayName: Laryn
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-05-26T15:00:13.223Z
Answers.LastActivityDate: 2015-05-26T15:00:13.223Z
Answers.UserDisplayName: Laryn
Answers.Body: <p>CiviCRM does not have this capability at present, but it could be created for your site.</p>
  
  <p>Using a file field in a repeating fieldset is the only way to add an undetermined number of files to an object in CiviCRM, though there is a configurable maximum number of repetitions. You could also add a set number of file fields that should be sufficient for most use cases. The former will look a bit nicer.</p>
  
  <p>Once you have defined the fields to store the (references to the) uploaded files, you will need to create your own upload page to handle multiple simultaneous uploads. Look for a pre-existing function in jQuery that can do this, or in a different library compatible with the CiviCRM browser technology stack.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-11-07T14:07:08.630Z
Answers.Text: @JuyalJee  - Were you able to figure this out?
Answers.UserDisplayName: Moe
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-11-14T15:11:10.717Z
Answers.Text: @JuyalJee - Same here. If you found a solution, please DO share. Facing similar problem
Answers.UserDisplayName: ArisK
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-05-27T06:05:27.557Z
Answers.Text: Yeah, but i have to use that file upload field in both type of custom fieldsets i.e. mutivalue as well as single value.  May be jquery will be helpful to display more than one field but our main concern is to save those values and also display them while generating reports for contacts.
Answers.UserDisplayName: Juyal Jee
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-05-27T03:25:07.627Z
Answers.LastActivityDate: 2015-05-27T12:45:03.080Z
Answers.LastEditDate: 2015-05-27T12:45:03.080Z
Answers.UserDisplayName: Joe Murray
Body: <p>I have civicrm installed with Drupal. I was not able to find how to create a multiple file upload using a civicrm custom data field. By default it allows only single file to be uploaded at a time. I require some 'Add more' type of functionality in CiviCRM.</p>
  
Tags: <drupal><custom-fields>
Title: Multiple file upload field
ThreadText: # Multiple file upload field
  
  (Asked by: username_0 on 2015-05-26)
  
  I have civicrm installed with Drupal. I was not able to find how to create a multiple file upload using a civicrm custom data field. By default it allows only single file to be uploaded at a time. I require some 'Add more' type of functionality in CiviCRM.
  
  **Tags:** drupal, custom-fields
  
  
  ---
  
  ## 2 answers
  
  ### Answer by username_1 on 2015-05-26. Score: 4
  
  When you create the Custom Field Set for contacts\*, you can check the box that says "Does this Custom Field Set allow multiple records?":
  
  ![Custom Field Set / Multiple records](https://i.sstatic.net/YpWRc.jpg)
  
  [From the book](http://book.civicrm.org/user/current/organising-your-data/custom-fields/):
  
  > **Multiple record fieldsets**
  >
  > By default custom data sets have a 'one-to-one' relationship to the
  > entity they are attached to. For example, one field set for a person's
  > physical attributes which contains one field for their height and one
  > for their eye colour will be attached to one individual record. This
  > makes sense because we only ever need to record one eye colour and one
  > height for each person. However, in certain circumstances, we want to
  > record multiple custom field sets for a single contact, for example,
  > when recording a person's educational history. In this case, a single
  > person may have multiple educational degrees, so a custom field set
  > about educational history, which contains fields for subject,
  > institution, and grade, should allow multiple records, and this is
  > what multiple record fieldsets allow.
  >
  > You can only add multiple record field sets to contacts - you can't
  > add them to other entities. To use this option, select the "Does this
  > Custom Field Set allow multiple records?" option. A few things to bear
  > in mind when creating mutiple record custom field sets:
  >
  > * Multiple data applies to the whole field set, not to individual fields.
  > * Multiple data be can only be added to Contacts. It cannot be added to Activities, or Contributions, etc.
  > * Mutiple data cannot currently be exported
  > * Before deciding to model something as a multiple value custom field set, you may wish to consider whether it could or should be modelled
  >   as an activity. For example, an educational degree could be an
  >   activity with custom data added.
  
  > **Comments:**
  > **username_0**: Yeah, that correct.  I have awared about this but there my issue coming in.  I have to create an file upload field to attach as many file as user wants.  i.e. we know that only civicrm field sets can be set as 'multiple data'. But what if we want an single custom field to upload multiple file ? It's an strong requirement.  
  > **username_1**: The only way I know of is to allow multiple files is to create a profile (with only the single field in it if it's the only field that should be multiple). If anyone else knows another way, I'll be interested, too.  
  
  ---
  
  ### Answer by username_2 on 2015-05-27. Score: 2
  
  CiviCRM does not have this capability at present, but it could be created for your site.
  
  Using a file field in a repeating fieldset is the only way to add an undetermined number of files to an object in CiviCRM, though there is a configurable maximum number of repetitions. You could also add a set number of file fields that should be sufficient for most use cases. The former will look a bit nicer.
  
  Once you have defined the fields to store the (references to the) uploaded files, you will need to create your own upload page to handle multiple simultaneous uploads. Look for a pre-existing function in jQuery that can do this, or in a different library compatible with the CiviCRM browser technology stack.
  
  > **Comments:**
  > **username_0**: Yeah, but i have to use that file upload field in both type of custom fieldsets i.e. mutivalue as well as single value.  May be jquery will be helpful to display more than one field but our main concern is to save those values and also display them while generating reports for contacts.  
  > **username_3**: @username_0  - Were you able to figure this out?  
  > **username_4**: @username_0 - Same here. If you found a solution, please DO share. Facing similar problem  
  
  ---
  
  