Page Menu
Home
Sealhub
Search
Configure Global Search
Log In
Files
F995468
file.js
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
666 B
Referenced Files
None
Subscribers
None
file.js
View Options
"use strict"
;
const
locreq
=
require
(
"locreq"
)(
__dirname
);
const
mime
=
require
(
"mime-types"
);
const
Promise
=
require
(
"bluebird"
);
function
File
(
creation_context
,
filename
,
data
,
id
,
file_mime
)
{
this
.
filename
=
filename
;
this
.
data
=
data
;
this
.
id
=
id
||
null
;
this
.
mime
=
file_mime
||
mime
.
lookup
(
filename
);
}
File
.
from_db_entry
=
function
(
db_document
)
{
return
new
File
(
db_document
.
creation_context
,
db_document
.
original_name
,
db_document
.
data
,
db_document
.
id
,
db_document
.
mime_type
);
};
File
.
prototype
.
data_structure
=
"file"
;
File
.
Reference
=
function
(
id
,
filename
)
{
this
.
id
=
id
;
this
.
filename
=
filename
;
};
module
.
exports
=
File
;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Dec 23, 05:38 (19 h, 45 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
556824
Default Alt Text
file.js (666 B)
Attached To
Mode
rS Sealious
Attached
Detach File
Event Timeline
Log In to Comment