Update: I have since released this as a Sitecore Marketplace Module for download. Improvements I have made and the full source code are available in this recent blog post
MIME Type Custom Form Validator
I was recently working on methods to validate files uploaded by End Users and the usual recommendation of checking the file extension didn’t sit right with me, even more so when I found out that the .NET API ultimately just checks the File extension as well.
So the product a mornings work I’ve written a decent method of checking those upload files are what they say they are. In this case I created a Custom Sitecore WFFM Field Validator but its simple enough to port the code to custom web forms. Hopefully another dev will find this suitable as an alternative method.
MasterKey – Unlock Sitecore Items en masse
So pretty exciting news! My first Module has just become available on the Sitecore Marketplace;
It is inspired by the struggles one of the QA guys I work with who had the joy of going through and unlocking folders and folders of items locked by a Content Editor’s account.
Webforms for Marketers Captcha not displaying
I recently developed a custom Web Forms field to allow users to upload photos taken on their mobile device via Web Form for Marketers. The client is pretty high-profile so a part of the requirement that they have some form of protection of repeat uploads from exhibitionists in their community shall we say. Easy, the Captcha field will meet this requirement, however there is an infuriating issue where the captcha image doesn’t display.
Programmactially Editing a Sitecore Item and Expanding Setting Standard Values
With the CRUD functions as entry points for the Modal it is a matter of retrieving fields for the item and then mapping them into our Models.