Send file by POST trouble

Do not post support requests, bug reports or feature requests. Discuss CEF here. Non-CEF related discussion goes in General Discussion!

Send file by POST trouble

Postby prah » Wed Nov 12, 2014 3:33 pm

Hi everyone!
I try to send a file to the POST method, but so far it does not work ... anyone encountered this problem?

headers:
Content-Type: multipart/form-data; boundary=---------------------------3607291866354
Content-Length: 70666
-----------------------------3607291866354
Content-Disposition: form-data; name="file"; filename="image-1.jpg"
Content-Type: image/jpeg


with INDY my project work, but i unlike them))

help me please)
tnx
prah
Newbie
 
Posts: 2
Joined: Wed Nov 12, 2014 3:26 pm

Re: Send file by POST trouble

Postby magreenblatt » Wed Nov 12, 2014 4:19 pm

What OS and CEF version? How are you trying to send the post data?
magreenblatt
Site Admin
 
Posts: 12408
Joined: Fri May 29, 2009 6:57 pm

Re: Send file by POST trouble

Postby prah » Thu Nov 13, 2014 5:14 am

win7, delphi10, dcef1.

i try file Stream and settofile
then

Request := TCefRequestRef.New;
Request.Flags := WUR_FLAG_NONE;
Request.Assign('http://******/', 'POST', Data, Header);

form1.Chromium1.Browser.MainFrame.LoadRequest(Request);
prah
Newbie
 
Posts: 2
Joined: Wed Nov 12, 2014 3:26 pm


Return to CEF Discussion

Who is online

Users browsing this forum: No registered users and 18 guests