mirror of
https://github.com/plankanban/planka.git
synced 2025-07-19 13:19:44 +02:00
parent
9fc527fffe
commit
e7b3612c2e
4 changed files with 78 additions and 66 deletions
|
@ -2,10 +2,11 @@ const fs = require('fs');
|
|||
const path = require('path');
|
||||
const rimraf = require('rimraf');
|
||||
const moveFile = require('move-file');
|
||||
const filenamify = require('filenamify');
|
||||
const { v4: uuid } = require('uuid');
|
||||
const sharp = require('sharp');
|
||||
|
||||
const filenamify = require('../../../utils/filenamify');
|
||||
|
||||
module.exports = {
|
||||
inputs: {
|
||||
file: {
|
||||
|
@ -17,7 +18,6 @@ module.exports = {
|
|||
async fn(inputs) {
|
||||
const dirname = uuid();
|
||||
|
||||
// FIXME: https://github.com/sindresorhus/filenamify/issues/13
|
||||
const filename = filenamify(inputs.file.filename);
|
||||
|
||||
const rootPath = path.join(sails.config.custom.attachmentsPath, dirname);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue