Answers.Body: <p>Please make sure you are closing the file properly before attaching to the email - any file which is open and been attached to email will have this issue </p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-08-21T10:41:40.167Z
Answers.Text: What do you mean? The form is on the website and there's a file field. The user clicks on "choose file" then submits the form. Then when the admin receives the filled out form, and downloads the file, the file is corrupt. However if I go to the "files" folder via ftp and download the file it is not corrupt (as indicated in the post above).
Answers.UserDisplayName: yahya.j
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-08-21T10:37:00.430Z
Answers.LastActivityDate: 2015-08-21T10:37:00.430Z
Answers.UserDisplayName: Ramesh - ARTECH Consultancy
Body: <p>I created a <strong>custom profile</strong> (to use as a form on my website) with a custom <strong>file field</strong>...When the user fills out the form, they upload a file, and the form is sent to the admin email address. When I open the email and download the attached file, I am unable to open it; the file becomes corrupt. However, if I use FTP and navigate to ".../files/civicrm/custom" and download the file from there, the file opens and is not corrupt.</p>
  
  <p>The website is using wordpress.</p>
  
  <p>Any help is much appreciated. Thanks in advance.</p>
  
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2015-09-11T01:40:17.443Z
Comments.Text: Can you elaborate on "corrupt" - what's the content of the file before and after upload? Try comparing the file you've uploaded and downloaded - are they the same size, same content ... ?
Comments.UserDisplayName: Chris Burgess
Tags: <wordpress><profile><custom-fields><email><forms>
Title: Why does this custom file field uploaded on profile not download from the emailed link?
ThreadText: # Why does this custom file field uploaded on profile not download from the emailed link?
  
  (Asked by: username_0 on 2015-08-21)
  
  I created a **custom profile** (to use as a form on my website) with a custom **file field**...When the user fills out the form, they upload a file, and the form is sent to the admin email address. When I open the email and download the attached file, I am unable to open it; the file becomes corrupt. However, if I use FTP and navigate to ".../files/civicrm/custom" and download the file from there, the file opens and is not corrupt.
  
  The website is using wordpress.
  
  Any help is much appreciated. Thanks in advance.
  
  **Tags:** wordpress, profile, custom-fields, email, forms
  
  > **Comments:**
  > **username_1**: Can you elaborate on "corrupt" - what's the content of the file before and after upload? Try comparing the file you've uploaded and downloaded - are they the same size, same content ... ?  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_2 on 2015-08-21. Score: -1
  
  Please make sure you are closing the file properly before attaching to the email - any file which is open and been attached to email will have this issue
  
  > **Comments:**
  > **username_0**: What do you mean? The form is on the website and there's a file field. The user clicks on "choose file" then submits the form. Then when the admin receives the filled out form, and downloads the file, the file is corrupt. However if I go to the "files" folder via ftp and download the file it is not corrupt (as indicated in the post above).  
  
  ---
  
  