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

UploadedFiles.Count == 0 issue

7 Answers 148 Views
Upload (Obsolete)
This is a migrated thread and some comments may be shown as answers.
will Ballard
Top achievements
Rank 1
will Ballard asked on 05 Mar 2009, 06:18 PM
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.

7 Answers, 1 is accepted

Sort by
0
Genady Sergeev
Telerik team
answered on 06 Mar 2009, 02:42 PM
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.
0
will Ballard
Top achievements
Rank 1
answered on 06 Mar 2009, 03:47 PM
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
0
will Ballard
Top achievements
Rank 1
answered on 06 Mar 2009, 03:56 PM
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.
0
Genady Sergeev
Telerik team
answered on 09 Mar 2009, 01:38 PM
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.
0
will Ballard
Top achievements
Rank 1
answered on 10 Mar 2009, 09:47 PM
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.
0
Deepa Balasundaram
Top achievements
Rank 1
answered on 27 Aug 2009, 05:06 PM
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
0
Genady Sergeev
Telerik team
answered on 02 Sep 2009, 08:48 AM
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.
Tags
Upload (Obsolete)
Asked by
will Ballard
Top achievements
Rank 1
Answers by
Genady Sergeev
Telerik team
will Ballard
Top achievements
Rank 1
Deepa Balasundaram
Top achievements
Rank 1
Share this question
or