mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-18 22:47:21 -06:00
WebUI: Fix WebAPI returned data.
This commit is contained in:
@@ -263,11 +263,12 @@ void RequestHandler::action_command_upload()
|
||||
QBtSession::instance()->addTorrent(filePath);
|
||||
// Clean up
|
||||
fsutils::forceRemove(filePath);
|
||||
print(QLatin1String("<script type=\"text/javascript\">window.parent.hideAll();</script>"));
|
||||
}
|
||||
else
|
||||
{
|
||||
qWarning() << "I/O Error: Could not create temporary file";
|
||||
status(500, "Internal Server Error");
|
||||
print(QByteArray("I/O Error: Could not create temporary file."), CONTENT_TYPE_TXT);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user