diff options
author | Chocobozzz <me@florianbigard.com> | 2021-09-09 09:31:50 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2021-09-09 09:35:30 +0200 |
commit | 790c2837ddcb443c0f1ea6adcdcb101dfe159d01 (patch) | |
tree | 2f1c957363e1c00475a7ab7c75c09efe61fba004 /server/helpers | |
parent | b4c945f3c727d1ce5de5a4af69d6dfa14c83468e (diff) | |
download | PeerTube-790c2837ddcb443c0f1ea6adcdcb101dfe159d01.tar.gz PeerTube-790c2837ddcb443c0f1ea6adcdcb101dfe159d01.tar.zst PeerTube-790c2837ddcb443c0f1ea6adcdcb101dfe159d01.zip |
Fix silent 500 after resumable upload
Diffstat (limited to 'server/helpers')
-rw-r--r-- | server/helpers/upload.ts | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/server/helpers/upload.ts b/server/helpers/upload.ts index 030a6b7d5..3cb17edd0 100644 --- a/server/helpers/upload.ts +++ b/server/helpers/upload.ts | |||
@@ -1,5 +1,3 @@ | |||
1 | import { METAFILE_EXTNAME } from '@uploadx/core' | ||
2 | import { remove } from 'fs-extra' | ||
3 | import { join } from 'path' | 1 | import { join } from 'path' |
4 | import { RESUMABLE_UPLOAD_DIRECTORY } from '../initializers/constants' | 2 | import { RESUMABLE_UPLOAD_DIRECTORY } from '../initializers/constants' |
5 | 3 | ||
@@ -9,13 +7,8 @@ function getResumableUploadPath (filename?: string) { | |||
9 | return RESUMABLE_UPLOAD_DIRECTORY | 7 | return RESUMABLE_UPLOAD_DIRECTORY |
10 | } | 8 | } |
11 | 9 | ||
12 | function deleteResumableUploadMetaFile (filepath: string) { | ||
13 | return remove(filepath + METAFILE_EXTNAME) | ||
14 | } | ||
15 | |||
16 | // --------------------------------------------------------------------------- | 10 | // --------------------------------------------------------------------------- |
17 | 11 | ||
18 | export { | 12 | export { |
19 | getResumableUploadPath, | 13 | getResumableUploadPath |
20 | deleteResumableUploadMetaFile | ||
21 | } | 14 | } |