My slicer (Cura) prefixes the output G-Code file with the printer ID. eg. CE3 for my Ender 3 and CCR10 for my CR-10.
I've uploaded the wrong file a printer before now with mixed results.
A good plug-in to check the prefix would be good ... simply alerting the user if the prefix didn't match the instance of Octoprint for the printer.