diff --git a/NetworkPrinterOutputDevice.py b/NetworkPrinterOutputDevice.py index dd7bdbe49e..0e14c2985a 100644 --- a/NetworkPrinterOutputDevice.py +++ b/NetworkPrinterOutputDevice.py @@ -290,8 +290,7 @@ class NetworkPrinterOutputDevice(PrinterOutputDevice): for line in self._gcode: single_string_file_data += line - ## TODO: Use correct file name (we use placeholder now) - file_name = "test.gcode" + file_name = "%s.gcode" % Application.getInstance().getPrintInformation().jobName ## Create multi_part request self._post_multi_part = QHttpMultiPart(QHttpMultiPart.FormDataType)