UploadedFiles.Count == 0 issue

Thread is closed for posting
8 posts, 0 answers
  1. will Ballard
    will Ballard avatar
    17 posts
    Member since:
    Mar 2005

    Posted 05 Mar 2009 Link to this post

    Hello,

    I implmented, almost verbatim, the sample file upload and progress manager as described in your getting started document.
    http://www.telerik.com/help/aspnet-ajax/upload_gettingstarted.html

    The first couple uploads when running through Cassini were successful. However subsequent uploads result in UploadedFiles.Count == 0, when I break into the code and check the InvalidFiles.Count it shows a count of 1, files that I uploaded just a few minutes ago will no longer upload. Sometimes if I navigate to a new folder I have not uploaded from and pick a small text file it will upload, but larger files (anything over a few K) fail. I had modified my web.config to increase the maxrequestlength and requestLengthDiskThreshold both to 512000 and execution timeout to 7200.

    I am using the controls inside of DNN 4.9. There is no ajax being implemented in the module, there is no url rewriting being done, and there is no file extension validation being done.

    I verified that the progress handler was correctly registered and the progress manager does run for large files but they never save to my target folder. I also checked the following document and did not find a resolution.
    http://www.telerik.com/help/aspnet-ajax/upload_troubleshootingnofiles.html

    Thank you.
  2. Genady Sergeev
    Admin
    Genady Sergeev avatar
    1596 posts

    Posted 06 Mar 2009 Link to this post

    Hi will Ballard,

    There are some preliminary configurations needed in order to use RadUpload in DNN. Please refer to this help article.

    Let us know how it goes.

    Kind regards,
    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. will Ballard
    will Ballard avatar
    17 posts
    Member since:
    Mar 2005

    Posted 06 Mar 2009 Link to this post

    Thank you for the suggeston.

    I have added the rewrite rule as specified in the document you referred me to however it did not fix the issue.

    I have attempted to upload three files: a wmv file that is 198 MBs which failed, an exe file that is 4 MBs which failed (but had worked during my very first test), and finally a txt file that was only 1K in size which did successfully upload.

    I verified again that my web.config had the proper maxRequestLength and requestLengthDiskThreshold values set, both are 512000

    Thank you
  5. will Ballard
    will Ballard avatar
    17 posts
    Member since:
    Mar 2005

    Posted 06 Mar 2009 Link to this post

    I failed to note that I did try and verify the fix suggested in both IE 8 and Firefox 3 and both browsers behaved similiarly.
  6. Genady Sergeev
    Admin
    Genady Sergeev avatar
    1596 posts

    Posted 09 Mar 2009 Link to this post

    Hi will Ballard,

    This is indeed very strange. Could you please test it under IIS? I have done some tests under IIS7, there is special configuration for it, manual here (tab II7 settings). I did manage to make it upload really large files (up to 700mb) using the upper settings.

    Unfortunately, at least on my tests, there seemed to be a bug with  the configuration of the target folder from the dnn module. If this happned to you as well you could try the following:
    1. Open DNN in Visual Studio
    2.  Navigate to Solution Expolore -> DesktopModules/Telerik.Web.UI/RadUpload/RadUpload.ascx
    3. Once there set manually the target folder property of the RadUpload
    If none on this helps you, could you please sent us your test module thus we can inestigate the issue locally.
    Kind regards,
    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.
  7. will Ballard
    will Ballard avatar
    17 posts
    Member since:
    Mar 2005

    Posted 10 Mar 2009 Link to this post

    Hello,

    I figured out the problem. There seemed to be a problem with the Visual Studio designer registering the Rad controls in .cs.designer files. I had manually added them, including the RadUpload1 control declaration which fixed Intellisense and stopped my compile time errors. However there was still some inherent problem with fixing the designer file manually that continued to result in the UploadedFiles.Count propertly always returning zero. I created a whole new project and added the Rad controls via the designer instead of creating them declaratively and it worked as expected.

    Thanks.
  8. Deepa Balasundaram
    Deepa Balasundaram avatar
    34 posts
    Member since:
    Jul 2009

    Posted 27 Aug 2009 Link to this post

    Hello,

    I couldn't upload files using RadUpload control. I am using RadUpload in a ascx page. I followed all the instructions given in the following page: http://www.telerik.com/help/aspnet-ajax/upload_uploadingajax.html

    But couldn't figure out the problem. Even a simple example like "RadUploadInDynamicallyLoadedUserControl.zip" is not working.

    Kindly suggest me some solutions.

    Thank you,
    Deepa
  9. Genady Sergeev
    Admin
    Genady Sergeev avatar
    1596 posts

    Posted 02 Sep 2009 Link to this post

    Hi Deepa Balasundaram,

    Can you provide us with more information regarding your scenario, I see that you have tried to attach a sample project, but unfortunately something must have gone wrong with the attachment because I am not able to download it. From the link to the help that you have posted, I can see that you use RadUpload in an update panel, perhaps you haven't properly registered the submit button as a postback control. We need your markup/code to provide you with further assistance.


    Kind regards,
    Genady Sergeev
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017