diff --git a/src/plugins/platforms/wasm/qwasmdom.cpp b/src/plugins/platforms/wasm/qwasmdom.cpp index 0045f43745c..da88c5b83ea 100644 --- a/src/plugins/platforms/wasm/qwasmdom.cpp +++ b/src/plugins/platforms/wasm/qwasmdom.cpp @@ -170,7 +170,7 @@ void DataTransfer::toMimeDataWithFile(std::function callback) QUrl fileUrl = QUrl::fromLocalFile(qtTmpDir.filePath(QString::fromStdString(webfile.name()))); mimeContext->fileUrls.append(fileUrl); - QFile file(fileName); + QFile file(fileUrl.toLocalFile()); if (!file.open(QFile::WriteOnly)) { qWarning() << "File was not opened"; mimeContext->deref();