Answers.Body: <p>For the record, the issue, as determined from the comments above was that the Asset field settings did not allow the type of file that was being uploaded.</p>
  
  <p>Updating the Asset field settings to allow the uploaded file type solved the issue.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-05-04T15:08:20.987Z
Answers.LastActivityDate: 2016-05-04T15:08:20.987Z
Answers.UserDisplayName: Ben Parizek
Body: <p>Any thoughts why a Sprout Form is not saving a form submission that contains a file. </p>
  
  <p>Not throwing any errors and on submission the user is returned to the form. </p>
  
  <p>This is a local build - I thought it might be a permissions issue with the file upload but nothing in logs, which seem to suggest that the entry/submission is being saved (event is valid, element saved).</p>
  
  <p>However, nothing is being saved in the back-end and the file is not being uploaded to the allotted directory.</p>
  
  <p>Confused - any help appreciated.</p>
  
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2016-05-04T11:21:54.810Z
Comments.Text: and yes, `enctype="multipart/form-data"` is declared on the form element
Comments.UserDisplayName: Cole Henley
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2016-05-04T14:29:07.353Z
Comments.Text: A few thoughts to start off with: Does the submission work when no file is added?  Is the filetype an allowed file type in Craft?  What size is the file?  Could this be a memory-related error? Is it possible your Title Format setting (on the Forms advanced tab) has a syntax error?
Comments.UserDisplayName: Ben Parizek
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2016-05-04T14:45:27.750Z
Comments.Text: hussah - thanks Ben. It was an issue with the filetypes set for the asset upload. Resolved now - would be useful if at all possible to log this in the plugin log but not sure what Craft returns if an incorrect filetype is upoaded. Thanks again
Comments.UserDisplayName: Cole Henley
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2016-05-04T15:07:02.810Z
Comments.Text: Glad to hear it Cole. We'll take a look at adding better logging there.
Comments.UserDisplayName: Ben Parizek
Tags: <plugin-sproutforms><files>
Title: Sprout Forms file upload
ThreadText: # Sprout Forms file upload
  
  (Asked by: username_0 on 2016-05-04)
  
  Any thoughts why a Sprout Form is not saving a form submission that contains a file.
  
  Not throwing any errors and on submission the user is returned to the form.
  
  This is a local build - I thought it might be a permissions issue with the file upload but nothing in logs, which seem to suggest that the entry/submission is being saved (event is valid, element saved).
  
  However, nothing is being saved in the back-end and the file is not being uploaded to the allotted directory.
  
  Confused - any help appreciated.
  
  **Tags:** plugin-sproutforms, files
  
  > **Comments:**
  > **username_0**: and yes, `enctype="multipart/form-data"` is declared on the form element  
  > **username_1**: A few thoughts to start off with: Does the submission work when no file is added?  Is the filetype an allowed file type in Craft?  What size is the file?  Could this be a memory-related error? Is it possible your Title Format setting (on the Forms advanced tab) has a syntax error?  
  > **username_0**: hussah - thanks Ben. It was an issue with the filetypes set for the asset upload. Resolved now - would be useful if at all possible to log this in the plugin log but not sure what Craft returns if an incorrect filetype is upoaded. Thanks again  
  > **username_1**: Glad to hear it username_0. We'll take a look at adding better logging there.  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2016-05-04. Score: 2 | Accepted answer
  
  For the record, the issue, as determined from the comments above was that the Asset field settings did not allow the type of file that was being uploaded.
  
  Updating the Asset field settings to allow the uploaded file type solved the issue.
  
  
  ---
  
  