Browse Source

Properly fill UploadedFile::filename field

Closes #8928.
adaptive-webui-19844
Vladimir Golovnev (Glassez) 7 years ago
parent
commit
90f09e7570
No known key found for this signature in database
GPG Key ID: 52A2C7DEE2DFA6F7
  1. 2
      src/base/http/requestparser.cpp

2
src/base/http/requestparser.cpp

@ -291,7 +291,7 @@ bool RequestParser::parseFormData(const QByteArray &data) @@ -291,7 +291,7 @@ bool RequestParser::parseFormData(const QByteArray &data)
const QLatin1String name("name");
if (headersMap.contains(filename)) {
m_request.files.append({filename, headersMap[HEADER_CONTENT_TYPE], payload});
m_request.files.append({headersMap[filename], headersMap[HEADER_CONTENT_TYPE], payload});
}
else if (headersMap.contains(name)) {
m_request.posts[headersMap[name]] = payload;

Loading…
Cancel
Save