Posts
Showing posts from March, 2019
Sitecore Sample Pipelines
- Get link
- X
- Other Apps
How to restrict certain types of files from being uploaded into Sitecore Create a Custom Class like below using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Web; using Sitecore; using Sitecore.Diagnostics; using Sitecore.IO; using Sitecore.Pipelines.Upload; namespace mySitecoreTestNew.Pipelines { public class CustomSave { public void Process(UploadArgs args) { foreach (string key in args.Files) { HttpPostedFile file = args.Files[key]; if (file.FileName.Length > 0 && file.ContentLength > 0) { ...