Skip navigation
ticktak
Currently Being Moderated

Error #2041: Only one file browsing session may be performed at a time

Aug 10, 2007 9:59 AM

Hi,
I've posted this question before but so far it's gone unanswered. I'd appreciate any help on this issue:

My application allows user to do either single or multiple file uploads. There are to buttons for each type. When either is pressed an instance of the FileReference or FileReference class is created.

It works fine if only do one type of successive uploads: single files only, or multiple files only. BUT whenever I switch from one type to another (i.e., I start uploading single files, and then press the button to upload multiple ones) I get the following error:

Error #2041: Only one file browsing session may be performed at a time.

How do I close or eliminate file browsing sessions? The complete event doesn't seem to do much on this respect.

Thanks so much.
 
Replies
  • Currently Being Moderated
    Aug 11, 2007 10:17 AM   in reply to ticktak
    I don't know if this would work but i suggest it anyway. How about that on this kind of situation your Flash would send via Javascript an instruction to browser. It would be something like this: reload this Flash application with following parameters: (some parameters). Those parameters would instruct Flash to load that very same page where situation occured. But now "the table is clean".
     
    |
    Mark as:
  • Currently Being Moderated
    Aug 17, 2012 5:16 AM   in reply to ticktak

    HI,

     

    I am new to Flash development. I am also facing the same problem... I set the filereference object to null. but still it is not working, I have 2 mxml files where i am using filereference object. In one mxml it is working fine without any issue, where as it not working fine with second mxml file.

     

    Can anybody help me out???

     

     

    I am also looking for stuff which helps me to read config file through flash. I don't know how to read config file.

     
    |
    Mark as:
  • kglad
    62,174 posts
    Jul 21, 2002
    Currently Being Moderated
    Aug 17, 2012 6:32 AM   in reply to manishchourasia2000@yahoo

    apply the cancel() method to your filereference instance.

     
    |
    Mark as:
  • Currently Being Moderated
    Aug 17, 2012 6:57 AM   in reply to kglad

    Hi,

     

    Thanks for your reply... Issue is resolved using file=null; only the problem was browser was loading swf from cache. when I close browser and delete temp. files it works.

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points