I was looking at what my own server accepts, and it is looking for JSON files, which i double checked with my colleagues and confirmed.
My question is this:
If I have a Javascript object, and need to sent it to the server as a file? How would that be done? I was thinking that I would need to use a hidden iframe or something and then submit it.
I was hoping there was some way to say:
var _JS_OBJ_ = {/* ... */}
var f = File(JSON.stringify(_JS_OBJ_));
// ...
// submit a multipart form -OR- $.ajax({.....});
I was hoping there was a way to create a virtual file which isnt actually saved to the client machine, which would alleviate the client-server file downloading restrictions. That way since it isnt saved, i could create a dynamic file to upload to a server via a AJAX call.