Re: Restrict an user didn't allow the image to upload in to gallery with spaces included in image name

  •  02-13-2014, 8:12 AM

    Re: Restrict an user didn't allow the image to upload in to gallery with spaces included in image name

    Hi,

     

    The gallery has an event "PostProcessImage", you can handle the upload image name in it. Like the code below to remove all spaces for the image.

     

    1. protected void GalleryBrowser1_PostProcessImage(object sender, GalleryImageEventArgs args)  
    2. {  
    3.   
    4.     args.Title = args.Title.Replace(" """);  
    5. }  
     

    Regards,

     

    Ken 

View Complete Thread