Answers.Body: <p>CiviCRM files are never directly web-accessible. If you are also using Webform integration to submit the file, then a copy of the file is also stored in Drupal. You could either make your Drupal files private (this is a Drupal setting) or you could implement a hook to delete the files from Drupal after they are uploaded.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-01-21T02:10:44.490Z
Answers.LastActivityDate: 2017-01-21T02:10:44.490Z
Answers.UserDisplayName: Coleman
Body: <p>We would like to create a custom field in CiviCRM for a file upload, and link it to the CiviCRM Webforms Integration module while at the same time keeping it "private" and is not publicly accessible.  </p>
  
  <p>Is there a way to do this in CiviCRM? Or maybe this is a default behaviour and files uploaded to CiviCRM are kept private? (Not accessible from the web directly etc..).</p>
  
  <p>Thanks in advance for any help,</p>
  
Tags: <custom-fields><webform-civicrm><files><filesystem>
Title: How to create a custom field for a file upload, and make it private
ThreadText: # How to create a custom field for a file upload, and make it private
  
  (Asked by: username_0 on 2017-01-20)
  
  We would like to create a custom field in CiviCRM for a file upload, and link it to the CiviCRM Webforms Integration module while at the same time keeping it "private" and is not publicly accessible.
  
  Is there a way to do this in CiviCRM? Or maybe this is a default behaviour and files uploaded to CiviCRM are kept private? (Not accessible from the web directly etc..).
  
  Thanks in advance for any help,
  
  **Tags:** custom-fields, webform-civicrm, files, filesystem
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2017-01-21. Score: 5 | Accepted answer
  
  CiviCRM files are never directly web-accessible. If you are also using Webform integration to submit the file, then a copy of the file is also stored in Drupal. You could either make your Drupal files private (this is a Drupal setting) or you could implement a hook to delete the files from Drupal after they are uploaded.
  
  
  ---
  
  