nwjs / nw.js

Call all Node.js modules directly from DOM/WebWorker and enable a new way of writing applications with all Web technologies.
https://nwjs.io
MIT License
40.29k stars 3.88k forks source link

Input File Bug #2826

Closed fddxsc closed 6 years ago

fddxsc commented 9 years ago

HTML code:

JS code: function PreviewImage(imgFile){   //alert(imgFile.value);   document.getElementById("bgPreview").src = imgFile.value; };

Image File Name: image1 name:8b78d8f8fca9d01d93dab145f99a6a20.jpg image2 name:123.jpg

Description: First, choose image1 then change to image2. Image2 cannot be loaded because that it has a wrong path(imgFile.value).

Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

felixSchl commented 9 years ago

I can confirm this behaviour, however I have only noticed it on Windows this far.

Something tells me that this line is returning true and marking the file as a directory, but I would need to look into it further to prove or disprove it.

felixSchl commented 9 years ago

Here are more symptoms:

stale[bot] commented 6 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.