Live Support, Chat, Upload Control and Rich Text Editor
Welcome to Support forums Sign in | Join | Help |Client Center
in Search

Block Filenames with Special Characters?

Last post 06-21-2016, 7:58 AM by Kenneth. 1 replies.
Sort Posts: Previous Next
  •  06-17-2016, 9:37 AM 83560

    Block Filenames with Special Characters?

    Is there a way to block the uploading of files containing characters such as $, %, &,  etc?
  •  06-21-2016, 7:58 AM 83636 in reply to 83560

    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 as RSS news feed in XML
Powered by ASP.Net
Copyright 2003 - 2017 CuteSoft Components Inc.. All rights reserved.