<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>

CC BY-SA 3.0
2016-05-04T15:08:20.987Z
2016-05-04T15:08:20.987Z
Ben Parizek
<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>

CC BY-SA 3.0
2016-05-04T11:21:54.810Z
and yes, `enctype="multipart/form-data"` is declared on the form element
Cole Henley
CC BY-SA 3.0
2016-05-04T14:29:07.353Z
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?
Ben Parizek
CC BY-SA 3.0
2016-05-04T14:45:27.750Z
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
Cole Henley
CC BY-SA 3.0
2016-05-04T15:07:02.810Z
Glad to hear it Cole. We'll take a look at adding better logging there.
Ben Parizek
<plugin-sproutforms><files>
Sprout Forms file upload
# 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 Cole. 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.


---

