Uploading file progress bar never goes away

13 posts, 0 answers
  1. Mike Causi
    Mike Causi avatar
    36 posts
    Member since:
    Dec 2005

    Posted 19 Aug 2010 Link to this post

    Here is my code;

     

    <rada:RadAsyncUpload ID="RadUpload1" runat="server" OnFileUploaded="RadAsyncUpload1_FileUploaded" OnClientFileUploadFailed="onUploadFailed"

     

     

    ReadOnlyFileInputs="true" OnClientFileSelected="onFileSelected" OnClientFileUploaded="onFileUploaded" OnClientFileUploading="onFileUploading" TemporaryFolder="c:\temp" />


     

     

    <script type="text/javascript">

     

     

     

     

     

    var $ = $telerik.$;

     

     

    var uploadsInProgress = 0;

     

     

    function onFileSelected(sender, args) {

     

    alert(

    '4');

     

     

    if (!uploadsInProgress)

     

    $(

    "#newupload").attr("disabled", "disabled");

     

    uploadsInProgress++;

    }

     

    function onFileUploaded(sender, args) {

     

    alert(

    '3');

     

    decrementUploadsInProgress();

    }

     

    function onUploadFailed(sender, args) {

     

    alert(

    '2');

     

    decrementUploadsInProgress();

     

    }

     

    function decrementUploadsInProgress() {

     

    alert(

    '1');

     

    uploadsInProgress--;

     

    if (!uploadsInProgress)

     

    $(

    "#newupload").removeAttr("disabled");

     

    }

     

    function onFileUploading() {

     

    alert(

    '5');

     

    }

     

     

    </script>

     




    The problem I'm having is that it never seems to properly be creating the temporary file.  I see a file called "RadUploadTestFile" created, but with 0KB.  And the progress bar never goes away.  I don't get why it won't create the temporary file for me to upload to the final location later?

    See attached image.

  2. Genady Sergeev
    Admin
    Genady Sergeev avatar
    1596 posts

    Posted 24 Aug 2010 Link to this post

    Hello Mike Causi,

    We will need some details regarding your scenario in order to troubleshoot the problem that you experience. Could you please answer the following:

    1) What is the size of the file that you are trying to upload?
    2) Which version of IIS do you use?
    3) Do you use authentication/authorization enabled for your web-site?
    4) Do you have the Telerik.Web.UI.WebResource.axd handler registered into your web.config?

    Thank you.

    Sincerely yours,
    Genady Sergeev
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Mike Causi
    Mike Causi avatar
    36 posts
    Member since:
    Dec 2005

    Posted 24 Aug 2010 Link to this post

    Here are some answers:
    1. Filesize is a 149kb pdf
    2. I am using IIS 7 in windows 7
    3. I am using forms authentication on the website
    4.   I have the handler registered as follows in the web.config

    <location path="Telerik.Web.UI.WebResource.axd">
        <system.web>
          <authorization>
            <allow users="*" />
          </authorization>
        </system.web>
      </location>

    under system.webserver
    modules
     <add name="RadUploadModule" preCondition="integratedMode" type="Telerik.Web.UI.RadUploadHttpModule" />

    handlers
      <add name="Telerik_RadUploadProgressHandler_ashx" verb="*" preCondition="integratedMode" path="Telerik.RadUploadProgressHandler.ashx" type="Telerik.Web.UI.RadUploadProgressHandler" />

  5. Genady Sergeev
    Admin
    Genady Sergeev avatar
    1596 posts

    Posted 27 Aug 2010 Link to this post

    Hi Mike Causi,

    How about the registration of the Telerik.Web.UI.WebResource.axd handler in the handlers section, is it present? Just a side note, we have just release Q2 Service Pack 1. In Service Pack 1, RadAsyncUpload is equipped with new, more robust error handling. Now it will throw error codes in the console showing what is the exact error. I think that will greatly ease us in troubleshooting your problem. So, could you please try the latest service pack, open the FireBug (in FireFox) console and try to upload a file. An error code will appear if the upload process fail. Then paste the error code here. This will allow us to easily track your problem.

    Sincerely yours,
    Genady Sergeev
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  6. Deanna Terry
    Deanna Terry avatar
    2 posts
    Member since:
    Mar 2010

    Posted 13 Sep 2010 Link to this post

    I'm having the same problem as Mike: "Uploading file progress bar never goes away", which is why I decided to read this thread for answers.  When I tried following your most recent instructions, I discovered a new clue.

    Here are the answers to your first set of questions:

    1) What is the size of the file that you are trying to upload? 18 KB
    2) Which version of IIS do you use? IIS 6.0
    3) Do you use authentication/authorization enabled for your web-site?  I'm using integrated authentication for various pages in my site (including the form that contains the RadAsyncUpload control), but I've checked and double-checked again that I have anonymous access enabled on my root directory and my App_Code directory.
    4) Do you have the Telerik.Web.UI.WebResource.axd handler registered into your web.config? Yes.  Again, I've checked and double-checked that the web.config is setup correctly.

    My control is very basic and is setup as follows:
    <telerik:RadAsyncUpload runat="server" ID="rauAttachment" Skin="Web20" ReadOnlyFileInputs="True">
    </telerik:RadAsyncUpload>


    So following you instructions, I downloaded, installed, and am using the most recent version of the controls (Version=2010.2.826.35).  I then opened up my form in FireFox so I could see the errors in FireBug... and, wouldn't you know it, the async upload worked perfectly in FireFox!  Therefore, I have no errors to paste and show you.  When using IE, I only receive a vague "unspecified error."  I've attached a screenshot of the error message.

    Any help you could provide would be greatly appreciated!!

    Thank you,
    Deanna
  7. Genady Sergeev
    Admin
    Genady Sergeev avatar
    1596 posts

    Posted 17 Sep 2010 Link to this post

    Hello Deanna Terry,

    Can you try the following, open the IE Developer Toolbar and open the page that produced error. When the error happen you should be prompted whether do you want to debug. Click yes and paste and make a screenshot of the failing code. Then link the screenshot to here. Also, try adding Location tag in the web.config allowing for anonymous access to the Telerik.Web.UI.WebResource.axd handler. Please check this article for further reference.

    Greetings,
    Genady Sergeev
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  8. chris
    chris avatar
    32 posts
    Member since:
    Jul 2011

    Posted 20 Oct 2011 Link to this post

    Hello Everyone,

     I seem to be having an related error. When I opened the Console in FireFox nothing appeared but it is still broken. I opening it in Google Chrome and I got this error "Uncaught SyntaxError: Unexpected token < ScriptResource.axd:16" I have attached a screen shot of the error.

    Thank you,
    Chris 

  9. David
    David avatar
    2 posts
    Member since:
    Jan 2013

    Posted 21 Jan 2013 Link to this post

    I got exactly the same error. Have anyone solved this?
  10. Plamen
    Admin
    Plamen avatar
    2729 posts

    Posted 24 Jan 2013 Link to this post

    Hello,

     
    I tried to reproduce the issue once again but to no avail. I am attaching my test project. Would you please review it and let me know what else should be added to it in order to observe the described error and be more helpful?

    Please have in mind that I have done my tested with latest version of RadControls please clarify the version you are using as well.

    Regards,
    Plamen
    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.
  11. Jody
    Jody avatar
    1 posts
    Member since:
    Jan 2012

    Posted 15 May 2013 Link to this post

    Is there any resolution to this issue?  Anything anyone can pass along to help resolve this problem?

    In our environment, the upload works fine on one server, but hangs, as described above, with the "SyntaxError: Unexpected token <" error in a different environment.  Any suggestions or ideas would be appreciated!

    Thanks!
  12. Plamen
    Admin
    Plamen avatar
    2729 posts

    Posted 20 May 2013 Link to this post

    Hi Mike,

     
    Would you please let us know if you can reproduce the error with the sample web page I attached in my previous reply and what exactly file are you uploading to observe the error or it happens with all the files?

    Regards,
    Plamen
    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.
  13. David
    David avatar
    2 posts
    Member since:
    Feb 2014

    Posted 19 Aug 2014 Link to this post

    Hi Mike, 
    We had the same issue in one of our application environments.
    The root cause was the misconfiguration of the app pool account not having write access to the app folder. As you're setting the temporary folder to c:\temp I would double check the app pool user has the appropriate privilege in that folder.

    Hope it helps, 
  14. David
    David avatar
    2 posts
    Member since:
    Feb 2014

    Posted 19 Aug 2014 Link to this post

    Hi Mike,
    We had the same issue in one of our application environments. 
    The root cause was a mis-configuration of the folder security in Windows. Since you're setting the temp folder for the RAD upload to "c:\temp" I would suggest checking the application pool account has the appropriate write access in that folder.

    Hope it helps,
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017