mirror of
https://github.com/ION606/ion-stop-enc.git
synced 2026-05-14 20:06:54 +00:00
added file size cap and favicon
This commit is contained in:
BIN
Binary file not shown.
|
After Width: | Height: | Size: 15 KiB |
BIN
Binary file not shown.
|
After Width: | Height: | Size: 26 KiB |
@@ -13,7 +13,13 @@ const app = express();
|
||||
app.use(cors());
|
||||
app.use(bodyParser.json());
|
||||
app.use(bodyParser.urlencoded({ extended: true }));
|
||||
const upload = multer({ storage: multer.memoryStorage() });
|
||||
app.use('/favicon.ico', express.static('favicon.ico'));
|
||||
|
||||
const upload = multer({
|
||||
storage: multer.memoryStorage(), limits: {
|
||||
fileSize: 2147483648 // 2GB
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
app.get('/', (_, res) => res.sendFile('index.html', { root: '.' }));
|
||||
|
||||
Reference in New Issue
Block a user