My domain level requires an entity to have 1: N images associated with it.
As FineUploader sends each image as a separate request, I create an entity (server side) at the first request and send the identifier of this in the first JSON response to add to subsequent requests so that the remaining images have the identifier of the entity relationship that needs to be saved. This all works well, except that the new identifier returned from the first request is not added to the next request.
I use setParams to add an identifier, connecting to the onComplete event as follows:
var uploader = new qq.FineUploader({ debug: true, element: document.getElementById('fine-uploader'), allowedExtensions: ['jpg', 'jpeg', 'bmp', 'png','gif'], callbacks : { onComplete : function(id, name, responseJSON){ this.setParams({entityId: responseJSON.entityId}); } } });
A new parameter is not added to request a URI or send data. What am I doing wrong?
(Using FineUploader 5.15.3, debugged on FireFox Developer Edition, PHP 7.1 server)
source share