Merge branch 'develop'
This commit is contained in:
commit
322177589b
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "ily.li",
|
"name": "ily.li",
|
||||||
"version": "1.0.1",
|
"version": "1.0.2",
|
||||||
"description": "Self-hosted file pusher",
|
"description": "Self-hosted file pusher",
|
||||||
"repository": "https://eternae.ink/arisu/ily.li",
|
"repository": "https://eternae.ink/arisu/ily.li",
|
||||||
"author": "Alice Gaudon <alice@gaudon.pro>",
|
"author": "Alice Gaudon <alice@gaudon.pro>",
|
||||||
|
@ -76,7 +76,7 @@ export default class FileController extends Controller {
|
|||||||
storage_type: 'local',
|
storage_type: 'local',
|
||||||
storage_path: 'storage/uploads/' + slug,
|
storage_path: 'storage/uploads/' + slug,
|
||||||
size: upload.size,
|
size: upload.size,
|
||||||
ttl: ttl,
|
expires_at: ttl <= 0 ? null : new Date(Date.now() + ttl * 1000),
|
||||||
});
|
});
|
||||||
|
|
||||||
await file.save();
|
await file.save();
|
||||||
|
Loading…
Reference in New Issue
Block a user