This already exists in the form of appending variables to the callback URL you define. I will setup a scenerio and give a solution to that scenerio so you can see how this can be accomplished.
The Client Uploads (Pseudo code)
CallbackURL = "http://myhost.com/mycallbackhandler.php?cust_myvariable=" + isImage + "&cust_myvariable2=" + myvalue2
Nirvanix.UploadFile(filedata, filename, options, callbackURL)
The Server Callback Handler, mycallbackhanlder.php on the myhost.com server
custVariable = RequestVarible["cust_myvariable"]
custVariable2 = RequestVarible["cust_myvariable2"]
if (custVariable == isImage)
Nirvanix.ImageResize(RequestVarible["filename"], outputfilename)
end if
The above scenerio passes two variables from an upload request to the server side handler that will then call image resize if the upload is marked isImage.
I think this is a very common case, you can define just about any simple variable by appending the value to the callback URL you have defined. We will echo back anything you have passed to us as well as the NVX.ResponseCode etc. This is also true for the forwardingURL parameter.
Regards,
Barry R.