How to get the full relative path of the file

Having problems with building or using CEF's C/C++ APIs? This forum is here to help. Please do not post bug reports or feature requests here.

How to get the full relative path of the file

Postby zero » Tue Jun 30, 2020 2:31 am

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?
zero
Newbie
 
Posts: 3
Joined: Tue Jun 30, 2020 2:21 am

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

Postby magreenblatt » Tue Jun 30, 2020 9:22 am

How is your question related to CEF?
magreenblatt
Site Admin
 
Posts: 10462
Joined: Fri May 29, 2009 6:57 pm

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

Postby amaitland » Tue Jun 30, 2020 5:08 pm

As I understand the behaviour in CEF is different to that of Chrome.
Maintainer of the CefSharp project.
amaitland
Master
 
Posts: 788
Joined: Wed Jan 14, 2015 2:35 am

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

Postby zero » Tue Jun 30, 2020 7:42 pm

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.
zero
Newbie
 
Posts: 3
Joined: Tue Jun 30, 2020 2:21 am

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

Postby magreenblatt » Tue Jun 30, 2020 7:54 pm

What OS and CEF version are you using? What Chrome version?
magreenblatt
Site Admin
 
Posts: 10462
Joined: Fri May 29, 2009 6:57 pm

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

Postby zero » Tue Jun 30, 2020 8:26 pm

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]
zero
Newbie
 
Posts: 3
Joined: Tue Jun 30, 2020 2:21 am


Return to Support Forum

Who is online

Users browsing this forum: Google [Bot] and 26 guests