I want to convert a html input file to a json string like this:
var jsonString = JSON.stringify(file);
console.log( file );
console.log( jsonString );
Now, in my firebug:
File { size=360195, type="image/jpeg", name="xyz.jpg", mehr...}
Object {}
Why is the jsonString
empty?
Background info: I want to send the file-reference with jsonp to another php server
Additional Information: I want to convert only the file-pointer (reference) to a string, to send it via GET.