This website works better with JavaScript.
Home
Help
Register
Sign In
ashpie
/
ily.li
Watch
1
Star
0
Fork
0
Code
Issues
1
Pull Requests
0
Releases
9
Wiki
Activity
Browse Source
Fix file uploading not working (ttl doesn't exist anymore)
develop
Alice Gaudon
2 weeks ago
parent
8555a35970
commit
349a8b65de
1 changed files
with
1 additions
and
1 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-1
src/controllers/FileController.ts
+ 1
- 1
src/controllers/FileController.ts
View File
@ -76,7 +76,7 @@ export default class FileController extends Controller {
storage_type
:
'local'
,
storage_path
:
'storage/uploads/'
+
slug
,
size
:
upload.size
,
ttl
:
ttl
,
expires_at
:
ttl
<=
0
?
null
:
new
Date
(
Date
.
now
(
)
+
ttl
*
1000
)
,
}
)
;
await
file
.
save
(
)
;
Write
Preview
Loading…
Cancel
Save