mirror of
https://github.com/ragestudio/comty.git
synced 2025-06-10 02:54:15 +00:00
added failed array
This commit is contained in:
parent
8f1155a6d0
commit
9451d8a12f
@ -87,6 +87,8 @@ export default class FilesController extends Controller {
|
||||
"/upload": {
|
||||
middlewares: ["withAuthentication"],
|
||||
fn: async (req, res) => {
|
||||
let failed = []
|
||||
|
||||
// check directories exist
|
||||
if (!fs.existsSync(global.uploadCachePath)) {
|
||||
await fs.promises.mkdir(global.uploadCachePath, { recursive: true })
|
||||
|
Loading…
x
Reference in New Issue
Block a user