Closed flange-ipb closed 3 years ago
Hello,
Ok, thanks!
Solution 2. or 3. work nicely.
First, I tried to put the exported JSON data into an <input type="hidden">
, which seems to have the same content size limitations like <input type="text">
- thus, large images cannot be sent. I managed to send the data embedded in a Blob object via a <input type="file">
now.
Hello, first of all thanks for creating such an advanced image editor!
I'd like to integrate miniPaint into an HTML form and write its data into a hidden input field. The open-edit-save example shows nicely how data can be written. My question: When to do this?
miniPaint.FileSave.export_as_json()
in such a callback? (That's usually my favorite strategy because of the web application framework I use.)export_as_json()
is synchronous.)Any suggestions/ideas?
Best regards, Frank