Restricted Upload datatype for Umbraco
Another friday another project , this time an improved upload datatype that will allow you to restrict the upload for your content editor.
The settings will allow you to provide a maximum file size (in KB) and the allowed file extension(s)
When the file isn’t valid the editor will get a notification
That’s it
The package is available on our.umbraco.org
If this ever get’s into the core it would be good to test with other packages. DAMP currently uses the guid of the upload hard coded. Also DMU and the new multiple file uploader in 4.9 probably don’t do the checks which this datatype does. So there could be a scenario where you can’t upload when you use this datatype, but that same upload works with DMU.
Hey Tim
Thanks!
I built the same thing for contour the other day & wondering if you’d share source, to check my logic against. Although obv different, the relative snippets should be the same
The validation doesn’t seem to work on IE 9.
Also, it doesn’t seem to delete the files!
Is there a way to make this plugin to create a thumbnail image to make previewing easier?