How to get the File name(s) Uploaded using CuteWebUI Ajax Uploader

Last post 09-05-2013, 4:35 AM by Rkumar1. 2 replies.
Sort Posts: Previous Next
  •  09-04-2013, 5:50 AM 77952

    How to get the File name(s) Uploaded using CuteWebUI Ajax Uploader

    Hi,

      I am Uploading multiple files using the  CuteWebUI Ajax Uploader, I need to get the Filenames without extensions to compare with some data and insert into the DB.I had first thought of getting date to Compare but earlier in one post I had seen that due to Security resons it is not possible to get date, so I thought of getting the filenames and Comparing but I don't know the option to do it.Kindly help.


    Rajesh Kumar Sountararajan
    Filed under: ,
  •  09-04-2013, 1:16 PM 77954 in reply to 77952

    Re: How to get the File name(s) Uploaded using CuteWebUI Ajax Uploader

    i Rkumar1,

     

    You can get all upload files name in event UploadCompleted, then get the name without file extension by the code below.

     

    1. protected void uploader1_UploadCompleted(object sender, UploaderEventArgs[] args)  
    2.     {  
    3.         for (int i = 0; i < args.Length; i++)  
    4.         {  
    5.             string name = args[i].FileName.Remove(args[i].FileName.LastIndexOf("."));  
    6.             //the name above is the file name without extension  
    7.         }  
    8.     }  
     

    Regards,

     

    Ken 

  •  09-05-2013, 4:35 AM 77957 in reply to 77954

    Re: How to get the File name(s) Uploaded using CuteWebUI Ajax Uploader

    Hi Ken,

         Thank You Very much. It had worked perfectly. 

    2013-09-05 10:03:45 AM


    Rajesh Kumar Sountararajan
View as RSS news feed in XML