Menu

Issues with using file uploader in Internet Explorer 8/9

Abhijit
2013-04-05
2014-01-09
  • Abhijit

    Abhijit - 2013-04-05

    Hi Shawn,

    Your file uploader component is a great widget & it works like a charm on Firefox, Chrome & Internet Explorer (IE) 10. But for IE 8/9 we are facing issues with the uploader, specifically the flash component that handles the upload.

    Below are the major issues:
    As per requirement, we have to hide the upload button & show a progress bar when file upload is in progress. But in IE 8 once you hide the uploader (fileUploader.setVisible(false);) then the file isn't getting uploaded. It is stuck in Queued status. This is observed for single as well as multiple file uploads. Is it possible to hide the file upload 'button' at least, so that user can be prevented from further upload until the previous files are uploaded?

    It works with disabling the button but our requirement is such that the upload button & the parent section should be hidden & only the progress bar should be visible during the upload. In case of multiple files we actually shown a new section with the individual file upload progress bars.


    ‘Cancel’ file upload is not working. The file gets uploaded & UploadErrorEvent is not generated.


    Validation errors not getting displayed as the FileQueueErrorEvent & UploadErrorEvent are not generated by the flash component. We are displaying the error messages in the methods of the respective handlers.
    We cancel the file upload once there are validation errors like file name & file type (fileUploader.cancelUpload();)
    Only the maximum file size validation is surprisingly working.


    There is a javascript error once you upload a file, that prevents any further navigation on the page. Below is the error snapshot.

    User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; InfoPath.3; MS-RTC LM 8)
    Timestamp: Fri, 5 Apr 2013 07:48:41 UTC

    Message: Exception thrown and not caught swfupload.js
    Line: 451
    Char: 2
    Code: 0

    It would be great if you could provide some solutions/suggestions to resolve above issues. It would be better if you can post some demo example for IE 8/9 with all scenarios working.

    Thanks & keep up the good work.

    Abhijit

     
    • Michal

      Michal - 2014-01-09

      I believe there are few issues with flash-based upload.

      Firstly the cancellation does not trigger UploadErrorEvent. There's a condition in Uploader.uploadErrorEventCallback which assumes that for cancelled file the error event has been fired already but this is not true for swfupload.

      Also we had issues with setting uploadUrl to the Uploader. For unknown reason the flash object is not initialized at certain stage (missing CallFunction method) and generates exception. I saw somewhere in swfupload.js forum a solution to postpone the setting which also worked for us.

      new Timer() {
        @Override
        public void run() {
          uploader.setUploadURL(uploadUrl);
        }
      }.schedule(1000);
      
       
  • Shawn Quinn

    Shawn Quinn - 2013-04-05

    If you're having trouble in IE 8/9 then it's likely related to the SWFUpload component itself (since the modern XMLHttpRequest 2 mechanisms aren't available in IE 8/9). To confirm, can you try using swfupload.js (and the related SWF file) directly and see if you have similar problems? Note that the examples on the main GWT Uploader page were tested and confirmed functional in IE 9, but I don't believe they were tested in IE 8.

     
  • Jainil Parekh

    Jainil Parekh - 2013-09-20

    Hi Abhijeet,
    Were you able to solve the issue. If so please share your approach. It will of tremendous help! Thanks in advance.

     
  • Jainil Parekh

    Jainil Parekh - 2013-09-20

    Hi Abhijeet,
    I am facing the same issue now. If you were able to find a solution for it, please share your strategy. Thanks in advance.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.