http://redmine.emweb.be/http://redmine.emweb.be/favicon.ico?16934085252018-04-24T11:30:35ZRedmineWt - Bug #6344: Wt::Http::Request getUploadedFile or uploadedFiles always emptyhttp://redmine.emweb.be/issues/6344?journal_id=199172018-04-24T11:30:35ZClaudio Whiteclaudio.m.666@googlemail.com
<ul></ul><p>One more hint:</p>
<p>std::ofstream f("srv.file", std::ios::out | std::ios::trunc | std::ios::binary);<br><br>
f << request.in().rdbuf();</p>
<p>Content of uploading is found in srv.file - so upload itself is working:-) That's the good News.</p>
<p>But i do expect that request.getParameter("upload-file") will giving back the value of the Parameter ---upload-file and this should be the value "Temp.txt" and not null as now.</p>
<p>Also i do expect that request.getUploadedFile("srv.file") will giving back the uploaded file and not null as now.</p>
<p>Same for request.uploadedFiles should giving back a map of all uploaded files and not null as now.</p>
<p>Is it only a missunderstanding of mine using request with calls from third Party Clients like curl or SoapUI, will request.getParameter(...), request.getUploadedFile(...) and request.uploadedFiles only be filled when using internal instantiated file Uploads using FileUpload?</p>
<p>If it is a missinderstanding of mine please Close this Ticket - but please leave a clarify message in which situations request.getUploadedFile and request-uploaededFiles are filled.</p>
Wt - Bug #6344: Wt::Http::Request getUploadedFile or uploadedFiles always emptyhttp://redmine.emweb.be/issues/6344?journal_id=201692018-05-28T14:17:24ZRoel Standaertroel@emweb.be
<ul><li><strong>Status</strong> changed from <i>New</i> to <i>Feedback</i></li></ul><p>Can you switch to Wt 3.3.10 first?</p>
Wt - Bug #6344: Wt::Http::Request getUploadedFile or uploadedFiles always emptyhttp://redmine.emweb.be/issues/6344?journal_id=201702018-05-28T14:27:47ZRoel Standaertroel@emweb.be
<ul></ul><p>Although, reading it a bit further. It looks to me that it is working as intended: the contents of the file are in the body of the request.</p>
<p>I believe uploadedFiles is more intended to be used with files uploaded through submitting a form. It should be working properly, since WFileUpload en WFileDropWidget are working properly.</p>