Page MenuHomeSealhub

virtual-file.js
No OneTemporary

virtual-file.js

//useful for sending content as a file, when the content is generated on the fly and not read directly from hdd
var VirtualFile = function(content, mime){
var ret = {};
this.content = content;
this.mime = mime || "text/plain";
};
module.exports = VirtualFile;

File Metadata

Mime Type
text/plain
Expires
Wed, Aug 13, 19:39 (1 d, 4 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
876996
Default Alt Text
virtual-file.js (265 B)

Event Timeline