Re: Block Filenames with Special Characters?

  •  06-21-2016, 7:58 AM

    Re: Block Filenames with Special Characters?

    Hi,

     

    you can use the api below to check the upload file name before upload and block it there.

     

    //Fires when files are selected.

    function CuteWebUI_AjaxUploader_OnSelect(files)

    {

        //change the files array would take no effect.

        var name=files[0].FileName;

        var size=files[0].FileSize // (or -1)

        //return false to cancel it..

    }

     

    regards,

     

    Ken 

View Complete Thread