[eluser]dettie[/eluser]
Hi,
In javascript I have the following:
Code:
afterEachUpload: function(data) {
$("#content").append(data);
}
Which outputs:
Code:
{"file_name":"filename.jpg","file_type":"image\/jpeg","file_path":"\/var\/www\/website\/uploads\/","full_path":"\/var\/www\/website\/uploads\/filename.jpg","raw_name":"filename","orig_name":"filename.jpg","client_name":"filename.jpg","file_ext":".jpg","file_size":46.61,"is_image":true,"image_width":438,"image_height":215,"image_type":"jpeg","image_size_str":"width=\"438\" height=\"215\""}
How do I output or access a specific value? For example the "file_name" key only ...
I've already tried things such as data['file_name'] and data[0]['file_name'] etc which does not work..