mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-03 17:59:37 +02:00
esModuleInterop to true
This commit is contained in:
parent
40e7ed0714
commit
41fb13c330
208 changed files with 444 additions and 425 deletions
|
@ -1,5 +1,5 @@
|
|||
import * as express from 'express'
|
||||
import * as multer from 'multer'
|
||||
import express from 'express'
|
||||
import multer, { diskStorage } from 'multer'
|
||||
import { HttpStatusCode } from '../../shared/models/http/http-error-codes'
|
||||
import { CONFIG } from '../initializers/config'
|
||||
import { REMOTE_SCHEME } from '../initializers/constants'
|
||||
|
@ -70,7 +70,7 @@ function createReqFiles (
|
|||
mimeTypes: { [id: string]: string | string[] },
|
||||
destinations: { [fieldName: string]: string }
|
||||
) {
|
||||
const storage = multer.diskStorage({
|
||||
const storage = diskStorage({
|
||||
destination: (req, file, cb) => {
|
||||
cb(null, destinations[file.fieldname])
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue