[MGNLFORM-254] add server side validation for file upload fields Created: 09/Dec/14 Updated: 04/Jun/15 Resolved: 20/May/15 |
|
| Status: | Closed |
| Project: | Magnolia Form Module |
| Component/s: | field, validation |
| Affects Version/s: | 2.2.8 |
| Fix Version/s: | 2.2.13 |
| Type: | Improvement | Priority: | Neutral |
| Reporter: | Richard Gange | Assignee: | Christoph Meier |
| Resolution: | Fixed | Votes: | 1 |
| Labels: | support | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Attachments: |
|
||||
| Issue Links: |
|
||||
| Template: |
|
||||
| Acceptance criteria: |
Empty
|
||||
| Task DoD: |
[ ]*
Doc/release notes changes? Comment present?
[ ]*
Downstream builds green?
[ ]*
Solution information and context easily available?
[ ]*
Tests
[ ]*
FixVersion filled and not yet released
[ ] 
Architecture Decision Record (ADR)
|
||||
| Release notes required: |
Yes
|
||||
| Date of First Response: | |||||
| Description |
|
We need server side validation for file upload fields on a form. Please see SUPPORT-3995 for donated code to handle it. |
| Comments |
| Comment by Ravish Bhagdev [ 20/Dec/14 ] |
|
SUPPORT-3995 doesn't seem accessible from community account at least. Can you please copy the details here? |
| Comment by Ravish Bhagdev [ 30/Jan/15 ] |
|
Will be good if we can allow the user to specify allowed file types/extensions and also max file size. |
| Comment by Christoph Meier [ 20/May/15 ] |
|
The form module now configures a new validator in the node /modules/form/config/validators/fileUpload In the case of an error, 2 different message keys are returned |
| Comment by Christoph Meier [ 20/May/15 ] |
|
list of allowed mime types - default configuration |
| Comment by Christoph Meier [ 20/May/15 ] |
|
Commit is on branch |
| Comment by Federico Grilli [ 20/May/15 ] |
|
1) I'd rephrase this "Adds a TwinColSelectField to the formFile dialog to which allows to add a validator to the formFile field." -> "Add a TwinColSelectField to the formFile dialog which allows to specify a validator to the formFile field." |
| Comment by Christoph Meier [ 21/May/15 ] |
|
Improved according to the review. Commits still on the same branch (see https://goo.gl/6FKjkW). |
| Comment by Tom Wespi [ 04/Jun/15 ] |
|
Hello any idea when 2.2.13 is going to be released? Best Tom |
| Comment by Richard Gange [ 04/Jun/15 ] |
|
Hey Tom- I think this will be released with Magnolia 5.3.9, which is planned for Monday. I'll double check that though. Cheers |