public static void ManageAjaxPost(FileUploaderAJAX fileupload, int maxKB, string path, HttpPostedFileAJAX.fileType fileType, bool isCreateByDate)
 {
     ManageAjaxPost(fileupload, maxKB, path, fileType, isCreateByDate, false);
 }
        public static void ManageAjaxPost(FileUploaderAJAX fileupload, int maxKB, string path, HttpPostedFileAJAX.fileType fileType, bool isCreateByDate, bool isEncrypted)
        {
            HttpPostedFileAJAX pf = fileupload.PostedFile;

            if ((maxKB == 0 || pf.ContentLength <= maxKB * KILOBYTE) && pf.Type == fileType && pf.Type != HttpPostedFileAJAX.fileType.application)
            {
                Upload(fileupload, path, isEncrypted, isCreateByDate);
            }
        }
 public static void ManageAjaxPost(FileUploaderAJAX fileupload, int maxKB, string path, HttpPostedFileAJAX.fileType fileType)
 {
     ManageAjaxPost(fileupload, maxKB, path, fileType, true);
 }