ProjectController.py
changeset 2487 6a4f9a061994
parent 2485 ef327451d067
child 2492 7dd551ac2fa0
--- a/ProjectController.py	Fri Feb 01 14:14:13 2019 +0100
+++ b/ProjectController.py	Wed Feb 13 09:41:35 2019 +0100
@@ -1873,11 +1873,14 @@
                 extrafiles.append((
                     name, 
                     self._connector.BlobFromFile(
-                        os.path.join(extrafilespath, name))))
+                        # use file name as a seed to avoid collisions
+                        # with files having same content
+                        os.path.join(extrafilespath, name),name)))
 
         # Send PLC on target
         object_path = builder.GetBinaryPath()
-        object_blob = self._connector.BlobFromFile(object_path)
+        # arbitrarily use MD5 as a seed, could be any string
+        object_blob = self._connector.BlobFromFile(object_path, MD5)
 
         self.HidePLCProgress()