mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-06 03:50:26 +02:00
Refactor uploadx middlewares
This commit is contained in:
parent
e286db3a39
commit
f7e4f62870
14 changed files with 182 additions and 166 deletions
|
@ -1,4 +1,4 @@
|
|||
import express, { VideoUploadFile } from 'express'
|
||||
import express, { VideoLegacyUploadFile } from 'express'
|
||||
import { PathLike } from 'fs-extra/esm'
|
||||
import { Transaction } from 'sequelize'
|
||||
import { AbuseAuditView, auditLoggerFactory } from '@server/helpers/audit-logger.js'
|
||||
|
@ -38,7 +38,7 @@ export type AcceptResult = {
|
|||
// Stub function that can be filtered by plugins
|
||||
function isLocalVideoFileAccepted (object: {
|
||||
videoBody: VideoCreate
|
||||
videoFile: VideoUploadFile
|
||||
videoFile: VideoLegacyUploadFile
|
||||
user: MUserDefault
|
||||
}): AcceptResult {
|
||||
return { accepted: true }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue