I am using the vault component… IN the php examples I see:
print_r(json_encode(array(
“state” => true, // saved or not saved
“name” => $filename, // server-name
“extra” => array( // extra info, optional
“info” => “just a way to send some extra data”,
“param” => “some value here”
)
)));
}
HOW do I read the “extra” data I set in the php from the js client??
onuploadcomplete returns a files object with:
- error: false
- id: “152”
- lastModifiedDate: Sat Jul 28 2018 11:56:28 GMT+0200 (Central European Summer Time) {}
- name: undefined
- serverName: “error.log”
- size: 87
- uploaded: true
Which do not correspond to the values sent by the php above!