We have moved to GitHub Issues
Created by Gideon Brett 30 Nov 2016, 19:24:26 Updated by Warren Buckley 05 Jul 2018, 12:39:33
What did you do? Created a form with a fileupload field, multiple mandatory fields and a dropdownlist with conditionals that show/hide fields based on values selected. Submitted form after choosing conditional option where original mandatory field is hidden with no value inside that input.
What did you expect to happen? Form to submit and for record data to be stored in database + file uploaded to umbraco media folder
What actually happened? Yellow screen occurred with error log (stack trace attached in error-log.txt)
What version of Umbraco are you using? 7.5.3
What version of Umbraco Forms or Contour are you using? 4.3.3 but the issue occurs in 4.4.0 as well
The reason for this is that the upload field is saved and restored as an IEnumerable
This is still occuring in Umbraco 7.6.1 and Forms 6.0.1.
Any solution yet?
I noticed this same behavior on Umbraco Cloud. The issue I noticed is in /Views/Partials/Forms/Fieldtypes/FieldType.FileUpload.cshtml. This code breaks whenever the if statement executes because Model.Values does not contain a dictionary object. It contains a string. It also causes the form to break when traversing form pages. To recreate, just upload a file, traverse to a new form page, and then come back.
Bump. This issue needs to be fixed.
This issue is still current in Umbraco Forms 6.0.5. and I think priority should be raised to major as it cripples core functionality of Umbraco Forms.
Backwards Compatible: True
Affected versions: 4.4.0, 6.0.5, 7.0.3
Due in version: 7.0.4
Sprint: Sprint 88
Story Points: 1