This is a migrated thread and some comments may be shown as answers.

Color Dot legend on document upload

5 Answers 240 Views
Upload (Obsolete)
This is a migrated thread and some comments may be shown as answers.
Edward
Top achievements
Rank 1
Edward asked on 15 Nov 2013, 09:48 PM
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

5 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 19 Nov 2013, 09:31 AM
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.
0
don.barnwell
Top achievements
Rank 1
answered on 20 Nov 2013, 12:21 AM
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?
0
Shinu
Top achievements
Rank 2
answered on 20 Nov 2013, 04:09 AM
Hi don,

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

Thanks,
Shinu.
0
Kaushal
Top achievements
Rank 1
answered on 10 Apr 2014, 07:01 PM
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.  
0
Shinu
Top achievements
Rank 2
answered on 11 Apr 2014, 04:37 AM
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.
Tags
Upload (Obsolete)
Asked by
Edward
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
don.barnwell
Top achievements
Rank 1
Kaushal
Top achievements
Rank 1
Share this question
or