Hi hassan,
This issue only happen on the trial license. Please change the CurrentCulture to "en-Us" before method below(red code) and than change back to "ar-SA" after it.
CuteWebUI.MvcUploadFile file = uploader.GetUploadedFile(fileguid);
Below is the new code of Sample1
- public ActionResult Sample1(string myuploader)
- {
- using (CuteWebUI.MvcUploader uploader = new CuteWebUI.MvcUploader(System.Web.HttpContext.Current))
- {
- uploader.UploadUrl = Response.ApplyAppPathModifier("~/UploadHandler.ashx");
-
- uploader.Name = "myuploader";
- uploader.AllowedFileExtensions = "*.jpg,*.gif,*.png,*.bmp,*.zip,*.rar";
-
- uploader.InsertText = "Select a file to upload";
-
-
- ViewData["uploaderhtml"] = uploader.Render();
-
-
- System.Threading.Thread.CurrentThread.CurrentCulture = System.Globalization.CultureInfo.CreateSpecificCulture("en-Us");
- if (!string.IsNullOrEmpty(myuploader))
- {
-
- Guid fileguid = new Guid(myuploader);
-
- CuteWebUI.MvcUploadFile file = uploader.GetUploadedFile(fileguid);
- if (file != null)
- {
-
-
-
-
-
-
- ViewData["UploadedMessage"] = "The file " + file.FileName + " has been processed.";
- }
- }
- System.Threading.Thread.CurrentThread.CurrentCulture = System.Globalization.CultureInfo.CreateSpecificCulture("ar-SA");
-
- }
-
- return View();
- }
Regards,
Ken