How do I reset file chooser?

0 favourites
  • 3 posts
From the Asset Store
Source File, music and art pack for Android Negotiator
  • I have file that i got from File chooser plugin and i want after some other actions to release that file, to reset file chooser object. How can i do that? I have tried Release file action, but it doesn't work.

    I tried Action Release file - Fileurl FileChooser.FileURLAt(0)

    I also tried Action Release file - Fileurl 0 and Action Release file - Fileurl "0"

  • I am working on a map editor and this is my last bug (: Release file action doesn't work. File chooser/on changed also doesn't work if you trying to load the same file again. I need to release that file -__-

    Edit

    My solution: Destroy file chooser and create it again to release the file.

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Yep, I had this bug too, ended with the same workaround - destroy and re-create the file chooser object.

    By the way, you can keep the file chooser button hidden off-screen and use the following code to trigger it:

    Browser Execute Javascript "myFileChooser.click()"

    where myFileChooser is the ID of FileChooser object.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)