file upload disable fakepath
defims opened this issue · 7 comments
will be possible disable fakepath when upload file? current webkit implement [html5's fakepath](HTML5's fakepath) because of security, but native app should handle it with nodejs or others, so disable this feature will be nice when develop native app.
This is a built-in security feature, i don't think it's good to remove it.
you can upload to node.js it all is local, it don't cost any data and takes almost no time to handle a upload.
See file uploads for node.js: https://codeforgeek.com/2014/11/file-uploads-using-node-js/
nodejs is nice for uploading file, what i need is the file's fullpath, webshell send the full path to nodejs, and nodejs setup a server of the path.
What are you trying to do.
For a normal upload c:\fakepath\file.x doesn't matter.
You can easily remove it with JavaScript...
And it still has no effect on the uploading process.
See also my example if you use input field "name" instead of input field "value" you don't get c:\fakepath
Otherwise make a snippet or something to show what you're trying. Uploading works fine, local and external.
@djyde what do you think.
If we need this then we need to trigger a event (event.result) after selecting the file, and make some more changes.
Please note, the c:\fakepath\ was introduced for security and now you can see the file system tree (where the file is)
- file uploading works; issue= if a file is given to the
input type="file"
then get the local file path.
I think WebShell is a browser, not a runtime. This problem should not be solve by WebShell.
we have no plans to support this.
maybe in the future, more as a service then a must.
if you think it must be added to WebShell, and you can code yourself then the best solution is to create a pull request.
at least, for now, i close this issue because it has no addition for now.