[R219] NWjs retrieves wrong ChosenPath

0 favourites
  • 3 posts
From the Asset Store
Be quick and choose whether the shown equation is right or wrong.
  • Hey Ashley, hope all is well for you.

    Problem Description

    When using the NWjs plugin, and using the "Show Open Dialog" action, and then selecting something, then checking the "ChosenPath" expression, it always shows the incorrect path as "C:\fakepath\" followed by the file's name that you picked in the Open dialog window. This means you cannot get the path of any files at all.

    Attach a Capx

    https://dl.dropboxusercontent.com/u/776 ... enBug.capx

    Description of Capx

    This is a quick capx containing a button and a text box. The button triggers the open dialog window and the textbox shows the ChosenPath.

    Steps to Reproduce Bug

    • 1. Run this in NodeWebkit.
    • 2. Click the button and select any file in any location.
    • 3. The Text object will return the path detected.

    Observed Result

    You will see the Text object always begins with "C:\fakepath\" and does not contain your file's path at all.

    Here's a screenshot. I selected a file in the Open dialog window named "a.png", located at "I:\Images\a.png". This is what is returned.

    Expected Result

    Should return the path of the file.

    Affected Browsers

    Node Webkit only.

    Operating System and Service Pack

    Windows 7 64-bit

    Construct 2 Version ID


  • Can't reproduce in the latest NW.js 0.13.0-beta2. Can you confirm if it still happens there for you?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Ashley

    Perfect! Working in the beta2. Thank you, much appreciated!

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