blob: 23233b8ac1751c9dc9327bd26ad7b1c3b2701fb5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
/**
* Expects a file. Returns an object containing the size, type, name and path.
*/
onmessage = function(event) {
var file = event.data;
var rtnObj = new Object();
rtnObj.size = file.size;
rtnObj.type = file.type;
rtnObj.name = file.name;
rtnObj.path = file.path;
rtnObj.lastModifiedDate = file.lastModifiedDate;
postMessage(rtnObj);
};
|