mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-30 21:55:31 +00:00
18 lines
400 B
JavaScript
18 lines
400 B
JavaScript
/**
|
|
* 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;
|
|
rtnObj.mozFullPath = file.mozFullPath;
|
|
|
|
postMessage(rtnObj);
|
|
};
|