RadUpload not working

Thread is closed for posting
18 posts, 0 answers
  1. vasia
    vasia avatar
    1 posts
    Member since:
    Aug 2008

    Posted 13 Aug 2008 Link to this post

    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?

  2. Erjan Gavalji
    Admin
    Erjan Gavalji avatar
    1455 posts

    Posted 13 Aug 2008 Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Amanda
    Amanda avatar
    24 posts
    Member since:
    Apr 2007

    Posted 13 Aug 2008 Link to this post

    How would I use this when the upload permits multiple files to be uploaded?
  5. Atanas Korchev
    Admin
    Atanas Korchev avatar
    8462 posts

    Posted 14 Aug 2008 Link to this post

    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.
  6. Jay
    Jay avatar
    86 posts
    Member since:
    Nov 2007

    Posted 20 Aug 2008 Link to this post

    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!
  7. Rob Teegarden
    Rob Teegarden avatar
    25 posts
    Member since:
    Feb 2008

    Posted 20 Aug 2008 Link to this post

    I second the issues with the progress bar issue, any help would be appreciated.
  8. Jay
    Jay avatar
    86 posts
    Member since:
    Nov 2007

    Posted 20 Aug 2008 Link to this post

    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
  9. Jay
    Jay avatar
    86 posts
    Member since:
    Nov 2007

    Posted 20 Aug 2008 Link to this post

    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.
  10. Michelle
    Michelle avatar
    24 posts
    Member since:
    Aug 2007

    Posted 22 Aug 2008 Link to this post

    I'm also having these same issues.

    Michelle
  11. rh
    rh avatar
    193 posts
    Member since:
    Jan 2007

    Posted 23 Aug 2008 Link to this post

    I'm having the same issues with the Q2 2008 release. When is the update to fix these issues going to be available?
  12. rh
    rh avatar
    193 posts
    Member since:
    Jan 2007

    Posted 23 Aug 2008 Link to this post

    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]);
  13. Erjan Gavalji
    Admin
    Erjan Gavalji avatar
    1455 posts

    Posted 25 Aug 2008 Link to this post

    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.
  14. Jay
    Jay avatar
    86 posts
    Member since:
    Nov 2007

    Posted 25 Aug 2008 Link to this post

    I just tried several files from 20meg to 90meg ... still does not show the progress bar. It works fine in the previous build.

    Jay
  15. Erjan Gavalji
    Admin
    Erjan Gavalji avatar
    1455 posts

    Posted 26 Aug 2008 Link to this post

    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.
  16. Jay
    Jay avatar
    86 posts
    Member since:
    Nov 2007

    Posted 26 Aug 2008 Link to this post

    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.

  17. Erjan Gavalji
    Admin
    Erjan Gavalji avatar
    1455 posts

    Posted 27 Aug 2008 Link to this post

    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.
  18. Jay
    Jay avatar
    86 posts
    Member since:
    Nov 2007

    Posted 27 Aug 2008 Link to this post

    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!
  19. Erjan Gavalji
    Admin
    Erjan Gavalji avatar
    1455 posts

    Posted 28 Aug 2008 Link to this post

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