How do I fix NW.JS Filepath issues?

0 favourites
  • 1 posts
From the Asset Store
Wind effect
$2.49 USD
Animated wind effect for objects, grass, trees, etc.
  • Hello everyone!

    I haven't used NWJS as I have just straight HTML exports so I have recently run across an issue.

    I have a small file that I compile into NWJS. After opening it (not preview mode), I set it up to allow me to drag and drop a XML file from my local hard drive which then uses that DroppedFile path in an AJAX call to then load into XML.

    On my PC, it works flawlessly. The file path works and loads into the XML plugin.

    On my Mac, I just get

    GET chrome-extension://ejddneclfgbfbpkjnanlnfdephgigobo/Users/nick/Documents/os…ntents/Versions/47.0.2526.73/nwjs%20Helper.app/Contents/MacOS/original.xml net::ERR_FILE_NOT_FOUND

    when trying to use the DroppedFile path in the AJAX call. Is there something I need to do differently with Mac for this file path to work? For reference, I also have a FileChooser option and selecting that same file from there it loads the AJAX call fine. Only difference is that the call has the blob: in front of it.

    Anyone have quick snap ideas or reasons for the Mac version to act like that?

    Thanks!

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)