rinkany
I used a NWjs to solve this problem.
Events:
On buttonOpenImage clicked - (NWjs) show open dialog
On open dialog OK - (NWjs) Read binary file NWjs.ChosenPath into BinaryData
//Preveiw
On binary file read - (spriteImage) Load image from BinaryData.GetURL
//Upload
On buttonPostImage clicked - (AJAX) Send URL: urlToMyPhpScript Data: "CanvasPic="& BinaryData.GetBase64 &"&name="& name Method: "POST"
I can't add a PHP script. The forum security system does not allow it.