We add custom parameters to the requests via the query parameter, as defined in the full documentation. In our case this is just a lookup in a dictionary which should return the object of key-value parameters to attach. In certain cases this object might not exist yet, and thus it will return undefined. This will cause a console error and stop the current upload.
We could say that this is an issue on our side (the fix is to always return at least an empty object, long live || {}), but it'd be nice if flow.js could execute the query method and if it returns undefined, fallback to the empty object (which is also the default as per the documentation).
We add custom parameters to the requests via the
query
parameter, as defined in the full documentation. In our case this is just a lookup in a dictionary which should return the object of key-value parameters to attach. In certain cases this object might not exist yet, and thus it will returnundefined
. This will cause a console error and stop the current upload.We could say that this is an issue on our side (the fix is to always return at least an empty object, long live
|| {}
), but it'd be nice if flow.js could execute the query method and if it returnsundefined
, fallback to the empty object (which is also the default as per the documentation).