Color Dot legend on document upload

Thread is closed for posting
6 posts, 0 answers
  1. Edward
    Edward avatar
    2 posts
    Member since:
    May 2013

    Posted 15 Nov 2013 Link to this post

    Do you have any documention that talks of the color dot definitions for your RadAsyncUpload control.
    I know that there are a few ways a user can receive a red dot on a document upload.
    Are users are asking for a message or legend that would tell them what the color dots mean.
    For the red dot is the reason available on a client side event.

    Thanks
  2. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 19 Nov 2013 Link to this post

    Hi Edward,

    The RadAsyncUpload displays a red dot besides the file name when the upload operation/file validation has failed or the user has cancelled the upload process by clicking the Cancel button. The client validation fails if the file size is greater than the MaxFileSize or if the file is having an invalid extension. You can attach the OnClientValidationFailed event to display the validation errors and OnClientFileUploadFailed event to display what error occured while uploading the selected files(s). Please check the sample code.

    JavaScript :
    function OnClientValidationFailed(sender, args) {
        var fileExtention = args.get_fileName().substring(args.get_fileName().lastIndexOf('.') + 1, args.get_fileName().length);
        if (args.get_fileName().lastIndexOf('.')!=-1) {
            if (sender.get_allowedFileExtensions().indexOf(fileExtention)==-1) {
                alert("Wrong Extension!");
            }
            else {
                alert("Wrong file size!");
            }
        }
        else {
            alert("No extension!");
        }
    }
     
    function OnClientFileUploadFailed(sender, args) {
        var errormessage=args.get_message();
        //display custom error message.
    }

    The yellow dot is shown when client file uploading is progressing and once it is successfully completed, the yellow dot changes to green.

    Thanks,
    Shinu.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. don.barnwell
    don.barnwell avatar
    1 posts
    Member since:
    Aug 2012

    Posted 19 Nov 2013 Link to this post

    Shinu thanks for the detailed reply and code sample.  I am also interested in this answer.

    You mentioned the following dot colors:
    red - Upload failed or canceled
    - Clientside validation fails or invalid extension
    yellow - Upload processing/in progress
    green - Upoad complete

    Are there any other possible colored dots that can display and their possible reasons?
  5. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 19 Nov 2013 Link to this post

    Hi don,

    RadAsyncUpload does not display any colored dots other than the Red, Green and Yellow upload status indicators.

    Thanks,
    Shinu.
  6. Kaushal
    Kaushal avatar
    8 posts
    Member since:
    Mar 2012

    Posted 10 Apr 2014 Link to this post

    I know this is old post... but I just came across this issue... I was getting red dot. The reason: file was opened. So make sure that the file is closed before you upload it.  
  7. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 10 Apr 2014 in reply to Kaushal Link to this post

    Hi Kaushal,

    As I mentioned in the previous post that RadAsyncUpload doesn't display any dotted red color indicator.  Please have a look into this forum thread which discuss about the scenario showing upload error when the file is opened. Please go through it.

    Thanks,
    Shinu.
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017