Can anyone tell me if it's possible to restrict the type of files that can be uploaded via the Contour File uploader. I only want a small selection of files to be permitted such as .jpg, .gif, .docx etc.
It seems as though there's no RegEx on the file upload like there is on other fields.
I'm using Umbraco 7.2.2 and the latest version of Contour.
The CogWorks dll doesn't seem to work with the latest version of Umbraco Forms. I did take a peek in .Net Reflector but what I couldn't work out is where the file name is checked against the regex. Does this have to be done in the frontend control?
We had a requirement for this recently in the latest version of Forms, so developed something similar to Ismail's from previous versions to achieve. If there is still interest and a requirement for it then let me know and we'll get it shared.
Restrict certain file extensions on file upload
Hello,
Can anyone tell me if it's possible to restrict the type of files that can be uploaded via the Contour File uploader. I only want a small selection of files to be permitted such as .jpg, .gif, .docx etc.
It seems as though there's no RegEx on the file upload like there is on other fields.
I'm using Umbraco 7.2.2 and the latest version of Contour.
Many Thanks
Paul
Paul,
I did this ages ago https://our.umbraco.org/projects/backoffice-extensions/cogworks-cogfilteredupload it may work with latest contour, else you can download the dll decompile source using dotpeet and create your own.
Regards
Ismail
Thanks Ismail, I'll take a look and let you know how it goes.
Cheers
Paul
Hi Ismail,
The CogWorks dll doesn't seem to work with the latest version of Umbraco Forms. I did take a peek in .Net Reflector but what I couldn't work out is where the file name is checked against the regex. Does this have to be done in the frontend control?
Thanks
Paul
Ismail, super interested in this for the new umbraco forms... any chance of you tweaking it up for us non-dev types?
Any luck on this? trying to do the same thing to restrict certain file upload to Contour.
Appreciate any help
Thanks
Hi Guys.
We had a requirement for this recently in the latest version of Forms, so developed something similar to Ismail's from previous versions to achieve. If there is still interest and a requirement for it then let me know and we'll get it shared.
Kind regards,
Dave.
Hey Dave
I'm very interested in a solution
Best Regards Kristoffer
I am also interested as this has just come up.
This should be built into forms. The File Upload field type should much more options than it does now (which is 0).
Hi guys,
Checkout our package: https://our.umbraco.org/projects/backoffice-extensions/umbraco-forms-on-perplex-steroids/
Jeffrey
Looks great! I may give this a shot later.
is working on a reply...