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

RadUpload max filesize

14 Answers 763 Views
UI for ASP.NET AJAX in ASP.NET MVC
This is a migrated thread and some comments may be shown as answers.
Anil
Top achievements
Rank 1
Anil asked on 01 Jun 2009, 08:09 PM
Good evening. We are using radupload. And we have set the max filesize at 1GB. If the filesize for the file to be uploaded exceeds this limit., "Page not found" error is displayed. Is there any way we can find the filesize before it is uploaded, to make sure it does not exceed this limit,in order to avoid this error? May be some validation on OnClientFileSelected event of radupload control. Please let us know.
Thanks
Anil

14 Answers, 1 is accepted

Sort by
0
Genady Sergeev
Telerik team
answered on 02 Jun 2009, 08:35 AM
Hi Anil,

Yes, it is possible to cancel the file upload if a file to upload is bigger than the fixed limit. More information on that topic can be found here.

Greetings,
Genady Sergeev
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Milind Raje
Top achievements
Rank 1
answered on 15 Dec 2010, 02:43 AM
hi,
What is the unit of the MaxFileLength? Is it bytes?
thanks
milind
0
Genady Sergeev
Telerik team
answered on 15 Dec 2010, 04:40 PM
Hi Milind Raje,

Precisely, the accepted values are in bytes.

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.
0
Milind Raje
Top achievements
Rank 1
answered on 15 Dec 2010, 04:42 PM
hi,
Thanks for your prompt reply. Also, is there a way to reduce/compress the sizes of the file before being uploaded to the server? For example, make image files smaller.
thanks
milind
0
Genady Sergeev
Telerik team
answered on 20 Dec 2010, 02:24 PM
Hello Milind Raje,

Unfortunately there is no way to do that on the client, since JavaScript does not provide a method of compressing files. Perhaps this can be done using Flash/Silverlight or Java Applet, however, this is out of the scope of RadControls for ASP.NET Ajax.

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
Kræn Munck
Top achievements
Rank 1
answered on 23 Nov 2011, 02:48 PM
Awesome, if it worked! :)

But the ProgressArea refuses to show up when the files are too large.

I could use the DisplayCancelButton property instead, but it breaks progress indicators when i try to upload again!
0
Genady Sergeev
Telerik team
answered on 28 Nov 2011, 12:31 PM
Hello Kræn Munck,


Could you please open a support ticket and attach there sample project (or at least sample web.config) that reproduces the problem at your end.  We will then research what is going wrong on your side, it looks like a configuration issue to me, probably with IIS, no the ASP.NET runtime.

Best wishes,
Genady Sergeev
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now
0
Kræn Munck
Top achievements
Rank 1
answered on 29 Nov 2011, 11:32 PM
No need, you can look at your failing demos! Pick a file larger than 100MiB and you'll never see the progressarea! Happy bug hunting!
http://demos.telerik.com/aspnet-ajax/upload/examples/progresstemplate/defaultcs.aspx
0
Bozhidar
Telerik team
answered on 05 Dec 2011, 11:02 AM
Hello Kræn Munck,

The demo is working as it should. 
Please read the Notes bellow the demo. When you choose a file bigger than 100MB, it shows the "Page Not Found" Error. 

Kind regards,
Bozhidar
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now
0
Kræn Munck
Top achievements
Rank 1
answered on 05 Dec 2011, 11:29 AM
Hi,

It would be nice if you could agree, when it's "broken" on my side it's a configuration issue, when it's broken on yours, it's "working" as it should?!?

I'd like you to look into the bug!  It's a fact that progress indicators are broken when you try to upload files that are too large..
0
Genady Sergeev
Telerik team
answered on 08 Dec 2011, 09:23 AM
Hi,

We managed to reproduce the problem on one of our machine and on the rest the correct error screen was shown. Further investigation showed that this is a problem with the server, which was enable to server error page, despite that the client was redirected there. Now, please note that this behavior is implemented by the ASP.NET runtime and it is the same whether you use FileUpload or RadUpload. This is the first time we receive such report so we will try to troubleshoot it further. Meanwhile, could you please confirm that you reproduce the same problem on different server than our online demos?

All the best,
Genady Sergeev
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now
0
Kræn Munck
Top achievements
Rank 1
answered on 08 Dec 2011, 09:52 AM
Hi,

Not sure why you talk about the error screen?  This is about the progressarea not showing.

It's a problem on my local dev machine and our production server, here are some specs:
Windows7 x64 - 8 gb mem
Windows Server 2008 R2 x64 - 16 gb mem
Both running ASP.NET 4 app pools in Integrated mode

Hope that helps.
0
Genady Sergeev
Telerik team
answered on 12 Dec 2011, 09:45 AM
Hello Kræn Munck,

The online demos are configured to allow file uploads up to maximum 100 megabytes. All uploads excluding that limit should be redirected to error screen. This is a feature implemented by ASP.NET and can be reproduced even on projects that does not contain telerik controls at all. Please take a look at this help topic for details.

Greetings,
Genady Sergeev
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now
0
Genady Sergeev
Telerik team
answered on 12 Dec 2011, 09:56 AM
Hi Kræn Munck,

On a side note, is it possible to switch to RadAsyncUpload from RadUpload? With RadAsyncUpload it is possible to set maximum file size and perform client-side validation, so that bigger files are not even uploaded. Also, the progress monitoring mechanism in RadAsyncUpload is far less error prone and don't rely on any HttpModule hacks in order to track the progress. You can see the async upload in action here.

Best wishes,
Genady Sergeev
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now
Tags
UI for ASP.NET AJAX in ASP.NET MVC
Asked by
Anil
Top achievements
Rank 1
Answers by
Genady Sergeev
Telerik team
Milind Raje
Top achievements
Rank 1
Kræn Munck
Top achievements
Rank 1
Bozhidar
Telerik team
Share this question
or