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

Getting Bad Request (Invalid Verb) when uploading a page using RadUpload

5 Answers 458 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Richard
Top achievements
Rank 1
Richard asked on 06 Aug 2010, 12:04 AM
I have a details view in an aspx page that contains the RadUpload control.  This is all encased in a RadWindow that pops up when a user clicks the edit link of a record in a RadGrid control.  When I specify a file to upload and submit the form I'm given a Bad Request (Invalid Verb) HTTP Error 400 page instead of it going back to the main window with the RadGrid, as it should.  This error doesn't occur if I don't specify a file to upload.  I'm not sure what the cause of this problem is, any help is appreciated.  I've included the piece of markup that includes my RadUpload control.  Let me know if more is needed.
<asp:TemplateField HeaderText="Upload Additional File" HeaderStyle-VerticalAlign="Top" ItemStyle-VerticalAlign="Top">
<ItemTemplate>
 <telerik:RadProgressManager ID="RadProgressManager1" runat="server" Skin="Vista" Height="16px" Width="500px" />
<telerik:RadUpload ID="RadUpload1" runat="server" MaxFileInputsCount="1" MaxFileSize="5242880" InputSize="60" Width="450px" ControlObjectsVisibility="None" ToolTip="Select file to attach to ticket (max filesize: 5MB)"  />
</
ItemTemplate>
</asp:TemplateField>

UPDATE:
I notice that this error only seems to occur on my development machine. Tried this on my test server and it works, wondering if there's some setting in IIS that's causing this.  But, again, this only seems to occur when I try to upload a file in my edit window.

5 Answers, 1 is accepted

Sort by
0
Richard
Top achievements
Rank 1
answered on 06 Aug 2010, 04:30 PM
Tested this code out in IE, I was using Firefox before, and it works fine.  So it appears that the issue only arises in Firefox, not sure about other browsers, would need to test in Opera, Chrome, etc.  Not sure what it is between RadUpload and Firefox that's causing this.
0
Devin
Top achievements
Rank 1
answered on 10 Dec 2010, 02:43 AM
Hi!
I'm getting this error in Opera 10 when I upload a 14 meg file.  However, it seems to work when using a 72kb file.  Can you please advise?

Thanks,
Devin
0
Genady Sergeev
Telerik team
answered on 15 Dec 2010, 11:27 AM
Hello Devin,

Please make sure that you have allowed for large file uploads in the web.config of your site. The default size allowed by ASP.NET is 4mb, therefore 14mb upload will fail for sure. You can read detailed instructions on how to allow for large files uploads here.

Kind regards,
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
Devin
Top achievements
Rank 1
answered on 04 Jan 2011, 11:38 PM
Hi,
I've set maxRequestLength="2097151" and executionTimeout="3600" and I'm still getting the same error.  Opera is the only browser giving me this error.

Thanks!
Devin
0
Genady Sergeev
Telerik team
answered on 05 Jan 2011, 10:53 AM
Hello Richard,

Could you please give a try with the standard ASP.NET FileUpload? This does not look like an issue with RadUpload but a webserver/browser issue. Also, is the issue reproducible on a sample page? I've created a sample test project and was able to successfully upload files using Opera 10.5

Best wishes,
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.
Tags
General Discussions
Asked by
Richard
Top achievements
Rank 1
Answers by
Richard
Top achievements
Rank 1
Devin
Top achievements
Rank 1
Genady Sergeev
Telerik team
Share this question
or