Trace fixed.

This commit is contained in:
stephb9959
2022-05-04 11:59:16 -07:00
parent c11c0281ce
commit 1648acca32
3 changed files with 13 additions and 54 deletions

View File

@@ -20,19 +20,12 @@ namespace OpenWifi {
auto UUID = GetBinding(RESTAPI::Protocol::FILEUUID, "");
auto SerialNumber = GetParameter(RESTAPI::Protocol::SERIALNUMBER, "");
// does the file exist
Poco::File DownloadFile(FileUploader()->Path() + "/" + UUID);
std::string FileType;
std::string FileContent;
if (!StorageService()->GetAttachedFileContent(UUID, SerialNumber, FileContent, FileType)) {
return NotFound();
}
std::cout << "Get Filesize: " << FileContent.size() << std::endl;
SendFileContent(FileContent,"pcap",UUID+".pcap");
// DownloadFile.remove();
}
void RESTAPI_file::DoDelete() {