Page Menu
Home
Sealhub
Search
Configure Global Search
Log In
Files
F6241328
uploaded-files.ts
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
372 B
Referenced Files
None
Subscribers
None
uploaded-files.ts
View Options
import
Router
from
"@koa/router"
;
import
File
from
"../../data-structures/file"
;
const
uploaded_files
=
new
Router
();
uploaded_files
.
get
(
"/:id/:filename"
,
async
(
ctx
)
=>
{
const
file
=
await
File
.
fromID
(
ctx
.
$app
,
ctx
.
params
.
id
);
ctx
.
body
=
file
.
getStream
();
ctx
.
set
(
"Content-Disposition"
,
`attachment; filename="
${
file
.
filename
}
"`
);
});
export
default
uploaded_files
;
File Metadata
Details
Attached
Mime Type
text/x-java
Expires
Tue, Jun 17, 03:29 (1 d, 9 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
643770
Default Alt Text
uploaded-files.ts (372 B)
Attached To
Mode
rS Sealious
Attached
Detach File
Event Timeline
Log In to Comment