From c4329a1ccded9ab7ac72ac7750cf8e882bcbe57e Mon Sep 17 00:00:00 2001 From: Nicholas Sherlock Date: Tue, 24 Oct 2017 20:29:42 +1300 Subject: [PATCH] Add editor/image name/version number to posted data --- js/engine/CPResourceSaver.js | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/js/engine/CPResourceSaver.js b/js/engine/CPResourceSaver.js index 5b7e65d..b32e788 100644 --- a/js/engine/CPResourceSaver.js +++ b/js/engine/CPResourceSaver.js @@ -135,12 +135,15 @@ export default function CPResourceSaver(options) { formData = new FormData(); formData.append("beginMarker", marker); - - formData.append("picture", flatBlob); + + formData.append("painter", "ChickenPaint v1.0"); + + formData.append("picture", flatBlob); flatBlob = null; if (chibiBlob) { - formData.append("chibifile", chibiBlob); + formData.append("chibifileFormat", "ChickenPaint v0.0"); + formData.append("chibifile", chibiBlob); chibiBlob = null; // Layers will need to be rotated upon opening