So far, Delivery.js has amazed me when it comes to simplicity of sending files through Socket.io. Props for making such a module! :-)
When I use delivery.send(file,extraParams) (extraParams being an object, as described in the readme), and I check the content of file on the server after receive.succes, I don't see the property params (I used Object.keys() to retrieve all the keys from the file-object), and reading file.params returns undefined.
I'd like to send meta-data with my application. Do you have an idea how I can include this meta data (or params) after all? I tried altering Delivery.prototype.send, FilePackage and FilePackage.prototype.prepBatch; but with no avail so far. Could you give me a pointer for fixing this, or help me out here?
Thanks in advance for taking a look at it!
So far, Delivery.js has amazed me when it comes to simplicity of sending files through Socket.io. Props for making such a module! :-)
When I use
delivery.send(file,extraParams)(extraParams being an object, as described in the readme), and I check the content offileon the server afterreceive.succes, I don't see the propertyparams(I usedObject.keys()to retrieve all the keys from thefile-object), and readingfile.paramsreturns undefined.I'd like to send meta-data with my application. Do you have an idea how I can include this meta data (or params) after all? I tried altering
Delivery.prototype.send,FilePackageandFilePackage.prototype.prepBatch; but with no avail so far. Could you give me a pointer for fixing this, or help me out here?Thanks in advance for taking a look at it!