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

Single File Upload

4 Answers 796 Views
AsyncUpload
This is a migrated thread and some comments may be shown as answers.
John
Top achievements
Rank 1
John asked on 29 Dec 2010, 08:19 AM
I want to upload a single file to my application using RadAsyncUpload.
<telerik:RadAsyncUpload runat="server" ID="RadAsyncUpload1" AllowedFileExtensions="jpg,jpeg,png,gif"
                    MaxFileSize="524288" OnFileUploaded="RadAsyncUpload1_FileUploaded"
                               OnClientValidationFailed="validationFailed" MaxFileInputsCount="1">
                </telerik:RadAsyncUpload>
I restricted the input count to 1, which will disable the select file option after selecting one file, when i removed the file  it will show the select option
again,which is working for files with right extension only, for wrong extensions files  when i removed the file,  the select option is not visible, i want to show select option in both cases in my application.How can i achieve it.

4 Answers, 1 is accepted

Sort by
0
Sergio
Top achievements
Rank 1
answered on 15 Apr 2011, 04:42 PM
Hello,
I have the same problem any answer would be appreciated,
and I also have a problem with the AllowedFileExtensions Property that is not restricting in the dialog the extensions I have defined .
The telerik version Im using is v.2010.3.1109.35  and Im using it in iis 5
0
Genady Sergeev
Telerik team
answered on 19 Apr 2011, 10:06 AM
Hello guys,

There used to be such problem, however, we have fixed it for the latest version. Please upgrade.

Greetings,
Genady Sergeev
the Telerik team

Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

0
illumination
Top achievements
Rank 2
answered on 29 Jul 2011, 06:27 PM
Hello,
I have the same problem and has this been fixed? I put

InitialFileInputsCount

 

 

="1"

 

but still able to select several documents to be uploaded.

and your example http://demos.telerik.com/aspnet-ajax/controls/examples/integration/gridandradasyncupload/defaultvb.aspx?product=upload is also able to upload several but only one shows up. I just want only a single document can be uploaded.
Please help.
Thanks.
0
illumination
Top achievements
Rank 2
answered on 29 Jul 2011, 06:35 PM
I just used MaxInput so it works now. Thanks.
Tags
AsyncUpload
Asked by
John
Top achievements
Rank 1
Answers by
Sergio
Top achievements
Rank 1
Genady Sergeev
Telerik team
illumination
Top achievements
Rank 2
Share this question
or