RadUpload max filesize

Thread is closed for posting
15 posts, 0 answers
  1. Anil
    Anil avatar
    26 posts
    Member since:
    Jun 2008

    Posted 01 Jun 2009 Link to this post

    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
  2. Genady Sergeev
    Admin
    Genady Sergeev avatar
    1596 posts

    Posted 02 Jun 2009 Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Milind Raje
    Milind Raje avatar
    37 posts
    Member since:
    May 2010

    Posted 14 Dec 2010 Link to this post

    hi,
    What is the unit of the MaxFileLength? Is it bytes?
    thanks
    milind
  5. Genady Sergeev
    Admin
    Genady Sergeev avatar
    1596 posts

    Posted 15 Dec 2010 Link to this post

    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.
  6. Milind Raje
    Milind Raje avatar
    37 posts
    Member since:
    May 2010

    Posted 15 Dec 2010 Link to this post

    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
  7. Genady Sergeev
    Admin
    Genady Sergeev avatar
    1596 posts

    Posted 20 Dec 2010 Link to this post

    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.
  8. Kræn Munck
    Kræn Munck avatar
    15 posts
    Member since:
    Jun 2008

    Posted 23 Nov 2011 Link to this post

    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!
  9. Genady Sergeev
    Admin
    Genady Sergeev avatar
    1596 posts

    Posted 28 Nov 2011 Link to this post

    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
  10. Kræn Munck
    Kræn Munck avatar
    15 posts
    Member since:
    Jun 2008

    Posted 29 Nov 2011 Link to this post

    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
  11. Bozhidar
    Admin
    Bozhidar avatar
    1101 posts

    Posted 05 Dec 2011 Link to this post

    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
  12. Kræn Munck
    Kræn Munck avatar
    15 posts
    Member since:
    Jun 2008

    Posted 05 Dec 2011 Link to this post

    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..
  13. Genady Sergeev
    Admin
    Genady Sergeev avatar
    1596 posts

    Posted 08 Dec 2011 Link to this post

    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
  14. Kræn Munck
    Kræn Munck avatar
    15 posts
    Member since:
    Jun 2008

    Posted 08 Dec 2011 Link to this post

    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.
  15. Genady Sergeev
    Admin
    Genady Sergeev avatar
    1596 posts

    Posted 12 Dec 2011 Link to this post

    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
  16. Genady Sergeev
    Admin
    Genady Sergeev avatar
    1596 posts

    Posted 12 Dec 2011 Link to this post

    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
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017