diff --git a/src/webui/webapplication.cpp b/src/webui/webapplication.cpp index a28e002b5..2b860f2dd 100644 --- a/src/webui/webapplication.cpp +++ b/src/webui/webapplication.cpp @@ -356,7 +356,10 @@ void WebApplication::doProcessRequest() DataMap data; for (const Http::UploadedFile &torrent : request().files) - data[torrent.filename] = torrent.data; + { + const QString fileName = QString::fromUtf8(torrent.filename.toLatin1()); + data[fileName] = torrent.data; + } try {