[R219] NWjs retrieves wrong ChosenPath

Bugs will be moved here once resolved.

Post » Sat Dec 19, 2015 9:41 pm

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.
Image

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
R219
B
50
S
20
G
10
Posts: 570
Reputation: 9,792

Post » Thu Jan 07, 2016 1:13 pm

Can't reproduce in the latest NW.js 0.13.0-beta2. Can you confirm if it still happens there for you?
Scirra Founder
B
378
S
220
G
84
Posts: 23,871
Reputation: 188,197

Post » Thu Jan 07, 2016 6:22 pm

@Ashley
Perfect! Working in the beta2. Thank you, much appreciated!
B
50
S
20
G
10
Posts: 570
Reputation: 9,792


Return to Closed bugs

Who is online

Users browsing this forum: Yahoo [Bot] and 4 guests