I've also added CogFiltered upload datatype to contour to restrict file extensions for file upload. when the form is loaded I am getting the below error:
The partial view '/umbraco/plugins/umbracoContour/Views/Fieldtype.cogfilteredupload.cshtml' was not found or no view engine supports the searched locations. The following locations were searched: /umbraco/plugins/umbracoContour/Views/Fieldtype.cogfilteredupload.cshtml
I know I've to add a view but dont know what sort of code I've to have in the view.
I thought I had uploaded the source for this on the project home page, however looks like i have not. Can you speak to anyone from cogworks and see if they can put the source up into bitbucket. Some of the other offerings from cogworks are already up there so i'm sure if will be fine. Is that file missing when you check the location /umbraco/plugins/umbracoContour/views ?
CogFiltered Upload with contour 3
Hi
I am using Umbraco 6.1.6 with Contour version 3.
I've also added CogFiltered upload datatype to contour to restrict file extensions for file upload. when the form is loaded I am getting the below error:
I know I've to add a view but dont know what sort of code I've to have in the view.
any help is much appreciated!
Thanks
Ali
Ali,
I thought I had uploaded the source for this on the project home page, however looks like i have not. Can you speak to anyone from cogworks and see if they can put the source up into bitbucket. Some of the other offerings from cogworks are already up there so i'm sure if will be fine. Is that file missing when you check the location /umbraco/plugins/umbracoContour/views ?
Regards
Ismail
yes that file is missing. who shall I contact Warren?
Thanks
Ali
I'll ask and let you know...cheers
I've created the following view under "/umbraco/plugins/umbracoContour/views" and everything works like a charm.
Thanks a lot to Ismail for helping me to find the solution.
Cheers
Ali
Ali,
Thanks for sharing your code. I think I only ever used this field type in webforms contour and not mvc contour however looks like you have sorted it.
Regards
Ismail
Hi Ali
I have tried adding your code to the counter views folder but it doesnt seem to work on v71.4 sql with latest contour.
Is there any update to it, or any other aspect that needs to be configured?
cheers
Any update on this as well? Looking to do the same thing with Umbraco V7.2.6 Forms
Thanks
Got this to work (partially) on latest Contour with Umbraco 7.
I have given this another try, downloading the source of the cogfilteredupload from https://our.umbraco.org/projects/backoffice-extensions/cogworks-cogfilteredupload/
and changing the reference of umbraco.forms.core and recompiling for .NET 4.5.1, i move the dll to the bin folder.
then created the ..umbracoContour/views/FieldType.cogfilteredupload.cshtml
with the code posted above.
It then renders the upload form, on latest Contour, Umbraco version 7.
However on a Contour form, with datatype set to cogworksfilteredupload and the regex field set to ^.+.((jpg)|(gif)|(jpeg)|(png))$
it doesnt seem to work; i.e. it allows to upload any file type - no validation seems to be taking place?
Is there something else I might be missing?
is working on a reply...