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

RadUpload not working

17 Answers 380 Views
Upload (Obsolete)
This is a migrated thread and some comments may be shown as answers.
vasia
Top achievements
Rank 1
vasia asked on 13 Aug 2008, 07:49 AM
Hi, when I did RadUpload for previous version of Telerik Controls(2008.1.619.35)  all working fine.
Now, I have a new version Q2, and my RadUpload not working.

UploadedFile file = RadUploadContext.Current.UploadedFiles[inputFile.UniqueID];

The value of the "file" variable is null.

what I am doing wrong?

17 Answers, 1 is accepted

Sort by
0
Erjan Gavalji
Telerik team
answered on 13 Aug 2008, 01:04 PM
Hi vasia,

We missed populating the RadUploadContext.Current.Uploaded files when reworking the control. Pease use

UploadedFile file = UploadedFile.FromHttpPostedFile(Request.Files[inputFile.UniqueID]);

instead.

Let me know if that helps.

Kind regards,
Erjan Gavalji
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Amanda
Top achievements
Rank 1
answered on 13 Aug 2008, 06:55 PM
How would I use this when the upload permits multiple files to be uploaded?
0
Atanas Korchev
Telerik team
answered on 14 Aug 2008, 05:30 AM
Hello vasia,

You can use the Request.Files collection and enumerate it.

All the best,
Albert
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Jay
Top achievements
Rank 1
answered on 20 Aug 2008, 09:25 PM
Additionally, the progress area does not seem to appear any more. Is this because "We missed populating the RadUploadContext.Current.Uploaded files when reworking the control."

In the new Q2, the RadProgressArea never shows up ... even on the sample website. Is this a known issue with Q2, or do I have something messed up on my system?

Thanks!
0
Rob Teegarden
Top achievements
Rank 1
answered on 21 Aug 2008, 12:12 AM
I second the issues with the progress bar issue, any help would be appreciated.
0
Jay
Top achievements
Rank 1
answered on 21 Aug 2008, 01:35 AM
I tried the patch that is at the top of this forum ... it seemed to work for a little while, now the radprogressarea does not show up again. Even on the sample website.

It seems that 2 of us are seeing this issue .... is anyone else? Is this a known issue with Q2?

Thanks
0
Jay
Top achievements
Rank 1
answered on 21 Aug 2008, 02:04 AM
Additionally, Intellisense now longer works with .aspx files after installing Telerik.Web.UI_2008_2_804_trial_hotfix.zip

It still works with .cs files ... just not .aspx.
0
Michelle
Top achievements
Rank 1
answered on 22 Aug 2008, 10:37 PM
I'm also having these same issues.

Michelle
0
rh
Top achievements
Rank 1
answered on 23 Aug 2008, 06:37 PM
I'm having the same issues with the Q2 2008 release. When is the update to fix these issues going to be available?
0
rh
Top achievements
Rank 1
answered on 23 Aug 2008, 06:44 PM
Also, why are there two ways to get the file?

And, what is the recommended approach? Has one been deprecated?

UploadedFile file = RadUploadContext.Current.UploadedFiles[inputFile.UniqueID];

or 

UploadedFile file = UploadedFile.FromHttpPostedFile(Request.Files[inputFile.UniqueID]);
0
Erjan Gavalji
Telerik team
answered on 25 Aug 2008, 04:02 PM
Hi guys,

Yes, the RadUploadContext.Current.UploadedFiles property is deprecated now.

As per the RadProgressArea not appearing - if this happens on your local machines, can you try uploading relatively large files (e.g. 20 MB)? I believe this might be the issue if everything else works fine. This happens, because now RadUploadHttpModule relies to the default ASP.NET file handling, which processes the file uploads a bit faster. As a result sometimes the progress data initialization cannot succeed when uploading small files (~5-10MB).

Let us know if the problem is else.

Regards,
Erjan Gavalji
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Jay
Top achievements
Rank 1
answered on 25 Aug 2008, 04:51 PM
I just tried several files from 20meg to 90meg ... still does not show the progress bar. It works fine in the previous build.

Jay
0
Erjan Gavalji
Telerik team
answered on 26 Aug 2008, 12:28 PM
Hi Jay,

It seems that I'm missing something here. Can you please, try the attached website on your server? It displays the progress area fine on my local machine with a 14 MB file.

P.S. Please note: the assemblies used by this demo are trial.

Best regards,
Erjan Gavalji
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Jay
Top achievements
Rank 1
answered on 26 Aug 2008, 05:17 PM
Your sample worked. I noticed your sample has

<

add path="Telerik.Web.UI.WebResource.axd" verb="*" type="Telerik.Web.UI.WebResource, Telerik.Web.UI" validate="false"/>

in the web.config file. My project did not. I added that to my web.config and mine now works (I see the progress bar). I am not sure why that was causing the issue in the Q2 but not in Q1.

Now I am just struggling because the Intellisense in .ASPX files does not work with the patch at the top of this thread installed.

Thanks.

0
Erjan Gavalji
Telerik team
answered on 27 Aug 2008, 08:00 AM
Hi Jay,

Strange indeed! The Telerik.Web.UI.WebResource.axd handler is not directly related to RadUpload's operation. It is needed by the RadScriptManager/RadStyleSheetManager controls.

As per the intellisense - does the website's web.config file has a reference to an older Telerik.Charting assembly? Also, did you change the assemblies in your website's bin folder with the ones in the package I sent you?

If so, this is the registration to the Telerik.Charting assembly, located in your GAC. As the package I sent you contains different versions of Telerik.Web.UI and Telerik.Charting assemblies, the Visual Studio IDE gets "confused" and cannot display the intellisense information. If you have the Telerik.Charting assembly in the website's bin folder, you can simply delete the registration in the web.config file.

Let me know if that helps.

Kind regards,
Erjan Gavalji
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Jay
Top achievements
Rank 1
answered on 27 Aug 2008, 08:03 PM
The Telerik.Charting is not in the project. Just Telerik.Web.UI.dll and Telerik.Web.UI.xml (they are both in the Bin folder).

I had just copied the patch (the .dll and .xml) that was available at the top of this forum into my bin folder. That's it. Then the Intellisense stopped in .aspx files.

I uninstalled Telerik and installed Q2 SP 1 ... now the Intellisense for .aspx works again.

Does the installer do anything with the GAC (and if so, why)? Or should I just be dropping the .dll/.xml into my bin directory?

Thanks!
0
Erjan Gavalji
Telerik team
answered on 28 Aug 2008, 07:13 AM
Hi Jay,

The installer adds the Telerik.Charting assembly to the GAC.

This comes because the Telerik.Charting assembly is common for several Telerik product lines - Reporting, RadControls for WinForms and RadControls for ASP.NET Ajax. Basically it is enough to have the assemblies in the local folder (moreover, if you deploy an application, using RadChart for ASP.NET Ajax on a shared hosting where you don't have access to the GAC, you need to have the Telerik.Charting assembly in the website's local Bin folder).

I'm not sure why did you have the Intellisense not working though - for example I personally use local deployment all the time and I did not have problems with the Intellisense.

Anyways, I'm glad everything is working fine on your side now. Please, don't hesitate to share with us anything if you decide to find what caused the Intellisense not working.

Kind regards,
Erjan Gavalji
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Upload (Obsolete)
Asked by
vasia
Top achievements
Rank 1
Answers by
Erjan Gavalji
Telerik team
Amanda
Top achievements
Rank 1
Atanas Korchev
Telerik team
Jay
Top achievements
Rank 1
Rob Teegarden
Top achievements
Rank 1
Michelle
Top achievements
Rank 1
rh
Top achievements
Rank 1
Share this question
or