Page 1 of 1

How to get the full relative path of the file

PostPosted: Tue Jun 30, 2020 2:31 am
by zero
I want to upload folder, so I use webkitdirectory in the input tag like this : "<input type="file" webkitdirectory />" . If the folder structure is like "root\child\child\demo.txt", the relative path got is "child\demo.txt". But in Chrome, the relative path got is "root\child\child\demo.txt". Is this a bug ? How can I get the full relative path?

Re: How to get the full relative path of the file

PostPosted: Tue Jun 30, 2020 9:22 am
by magreenblatt
How is your question related to CEF?

Re: How to get the full relative path of the file

PostPosted: Tue Jun 30, 2020 5:08 pm
by amaitland
As I understand the behaviour in CEF is different to that of Chrome.

Re: How to get the full relative path of the file

PostPosted: Tue Jun 30, 2020 7:42 pm
by zero
magreenblatt wrote:How is your question related to CEF?

I use cef to load a webpage, but I cant get the full relative path. In chrome, this webpage run OK.

Re: How to get the full relative path of the file

PostPosted: Tue Jun 30, 2020 7:54 pm
by magreenblatt
What OS and CEF version are you using? What Chrome version?

Re: How to get the full relative path of the file

PostPosted: Tue Jun 30, 2020 8:26 pm
by zero
magreenblatt wrote:What OS and CEF version are you using? What Chrome version?

OS: windows 10
CEF Version:Branch 3945
Chrome Version:83.0.4103.116

I use the cefclient to visit [url]https://developer.mozilla.org/zh-CN/docs/Web/API/HTMLInputElement/webkitdirectory
[/url]