CEF3 - CefFileDialogCallback

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.

CEF3 - CefFileDialogCallback

Postby zbyna » Thu Aug 28, 2014 9:58 pm

Hi all,

I am using CefFileDialogCallback Continue method with my own filepath.
Filepath is filled in to the file input element on a page and then all content of browser window disappears and
all page must be reloaded to recover by user. Input file element ofcourse loses filled information :?
Did somebody encountered similar issue ?
I am using freepascal port of CEF3 fpCEF3 in Win7 and I am trying to find if this issue originated from native library or
freepascal port or from space between chair and keyboard ;)
Thanks for any help

zbyna
zbyna
Newbie
 
Posts: 3
Joined: Tue Aug 26, 2014 5:40 pm

Re: CEF3 - CefFileDialogCallback

Postby magreenblatt » Fri Aug 29, 2014 9:21 am

You'll probably have to debug it. I'm not aware of any issues in the CEF C/C++ code related to this.
magreenblatt
Site Admin
 
Posts: 12383
Joined: Fri May 29, 2009 6:57 pm

Re: CEF3 - CefFileDialogCallback

Postby zbyna » Fri Aug 29, 2014 1:33 pm

debug.log for CEF3 shows only:
[0829/200703:ERROR:renderer_main.cc(226)] Running without renderer sandbox
After reading available information within this forum I think it belongs to windows implementation of free pascal port.
Debugging within CodeTyphon (Lazarus) led me outside pascal code to calling C library of CefFileDialogCallback.

My issue seems to be a problem of particular web pages:
when using form from this page:
http://www.cs.tut.fi/~jkorpela/forms/file.html#example
the issue arises

but using this link:
http://www.w3schools.com/tags/tryit.asp?filename=tryhtml5_input_type_file
works just as expected :?
I need this for uploading a telephone directory to local voip server, but it is not possible to change server side dialog which
does not keep information from CefDialogCallback. I implemented workaround with custom clicks and timers to automate uploading with WIN API means less elegant solution :(

Anyway thanks for responce, CEF3 is amazing project.
zbyna
Newbie
 
Posts: 3
Joined: Tue Aug 26, 2014 5:40 pm

Re: CEF3 - CefFileDialogCallback

Postby magreenblatt » Fri Aug 29, 2014 1:44 pm

Does the problem reproduce with the cefclient sample application? If not, then you're probably correct that it's an issue with the pascal wrapper.
magreenblatt
Site Admin
 
Posts: 12383
Joined: Fri May 29, 2009 6:57 pm

Re: CEF3 - CefFileDialogCallback

Postby zbyna » Sun Aug 31, 2014 6:02 pm

magreenblatt wrote:Does the problem reproduce with the cefclient sample application? If not, then you're probably correct that it's an issue with the pascal wrapper.


The creator of fpCEF3 helped me with this issue.
At the short - absolute path is the solution in fpCEF3. ( CefFileDialogCallback Continue parameter)
Some file input needs it: http://www.cs.tut.fi/~jkorpela/forms/file.html#example
others does not: http://www.w3schools.com/tags/tryit.asp ... _type_file

And out of curiosity I implemented this method in cefclient demo using C++ and
it does not need absolute path a works for both sites - strange :)
zbyna
Newbie
 
Posts: 3
Joined: Tue Aug 26, 2014 5:40 pm


Return to Support Forum

Who is online

Users browsing this forum: No registered users and 40 guests