File Upload Validation Field cuts regular expressions
This is an open discussion with 7 replies, filed under Troubleshooting.
Search
Indeed the length of the validator field is 50 characters. (I don’t really see why you are limited to 49, but anyway…)
To me this is a useless limitation. We should probably bump it up to 255 characters at least.
Would you please post this finding as an issue on the bug tracker?
BTW: As an interim hack you might change the field length in the database using phpMyAdmin. I don’t expect any negative side effects.
Would you please post this finding as an issue on the bug tracker?
ok
BTW: As an interim hack you might change the field length in the database using phpMyAdmin. I don’t expect any negative side effects.
thanks :)
Heh, that’s a really odd limitation.
Thanks!
You could still optimize the expression a bit.
- doc|docx = docx?
- ppt|pptx = pptx?
- xls|xlsx = xlsx?
A question mark makes the preceding item optional.
Create an account or sign in to comment.
Heyho,
to allow some more file types than the tyes listed in the document-template I extended the regular expression this way:
When I try to save this validation rule only this part of the rule is left:
Can it be that the field length is a bit to low for “complex” regular expressions?
Regards,
Andreas