In Editor and File/Image browser you can specify custom function to get data from server, create dir, remove dir, navigate...
You can also send additional data ... because you have configurations for:
Is it possible to achieve this for upload? Or at least how can tell editor or stand alone Image/File Browser that result are in response.Data not just in response?
You can also send additional data ... because you have configurations for:
- imageBrowser.transport.read
- imageBrowser.transport.read.contentType
- imageBrowser.transport.read.data
- ...
But for upload there is only uploadUrl available. The browser expect that result from server is {"size":38020,"name":"logo_30.jpg","type":"f"} for example, but my server can not get response like this, but {"Something": ..., "Data": {"size":38020,"name":"logo_30.jpg","type":"f"}, "Additional": "value"}
I really like options that you have with read, create dir, remove dir, navigate:
imageBrowser.transport.create = function(o)
{
$.post("url", params, function(response){o.success(response.Data)});
};
Is it possible to achieve this for upload? Or at least how can tell editor or stand alone Image/File Browser that result are in response.Data not just in response?