Local modifications to ClusterLabs/Anvil by Alteeve
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

16 lines
407 B

import multer from 'multer';
import SERVER_PATHS from '../lib/consts/SERVER_PATHS';
const storage = multer.diskStorage({
destination: (request, file, callback) => {
callback(null, SERVER_PATHS.mnt.shared.incoming.self);
},
filename: (request, file, callback) => {
callback(null, file.originalname);
},
});
const uploadSharedFiles = multer({ storage });
export default uploadSharedFiles;