Hi!
Can i change how to parse response from the server which handles file uploads?
e.g. parse image link from this response:
{
"files": [{
"name": ...,
"size": ...,
"type": ...,
"error": ...,
"path": ...,
"url": ...
}]
}
Problem is that i can't change the response.
It is not possible at this point. We're currently developing the version 2.0 that will have a special option for that.
Now froala's version is 2.5.0,but i can't find the option for that.@stefanneculai
@stefanneculai any news?
image.uploaded event can be used in V2 for parsing a custom response from the server and insert that image.
@stefanneculai But first of all is fired error callback - it's not necessary in many cases with custom response...
You could either pass "link": "" so that the error is not triggered, or use the same param from image.error event. It is not documented, but the response is there as well.
@stefanneculai
You could either pass "link": ""
sorry, where should i pass it?
In the server response. We use this repo for bug tracking only. We offer tech support under the Advanced and OEM license via email. Please contact us there for extending the editor.
you can use image.get method to pass in image.insert as existing image
Most helpful comment
Now froala's version is 2.5.0,but i can't find the option for that.@stefanneculai