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

File not uploading when Client script added to the UploadControl

1 Answer 64 Views
Upload (Obsolete)
This is a migrated thread and some comments may be shown as answers.
heyrohit
Top achievements
Rank 1
heyrohit asked on 22 Feb 2010, 09:56 AM
Hello Team,

I have modified the appearance of the RadUpload control by removing the Select and remove buttons for each row (see attachment). Instead, I show file open dialog on click of the Add button. I also have added RadProgressArea and RadProgressManager controls to the form.

The issue is if I use the Out of the box functionality, the files are uploaded with the ProgressArea being shown. But if i add the script, the files are not uploaded. Below is the script i am using.


function

 

appendAttachment(sender, arguments) {

 

 

var fileDialog = sender.getFileInputs();

 

fileDialog[fileDialog.length - 1].click();

 

return true;

 

}

Please Assist
Rohit

1 Answer, 1 is accepted

Sort by
0
Genady Sergeev
Telerik team
answered on 24 Feb 2010, 04:32 PM
Hi Rohit Kamble,

The approach that you have undertaken for opening the file dialog works in IE but is not applicable in FireFox due to security limitations.

With respect to your question, how you have attached the appendAttachment function to the Add button? Are there any JavaScript errors on the page when you try to upload the files?

All the best,
Genady Sergeev
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Tags
Upload (Obsolete)
Asked by
heyrohit
Top achievements
Rank 1
Answers by
Genady Sergeev
Telerik team
Share this question
or