Temporarily disable image uploads.
This commit is contained in:
parent
ea92f90a36
commit
9dcd14b4f4
@ -42,7 +42,10 @@ function setupMulter(app: Application) {
|
||||
limits: { fileSize: 1024 * 1024 },
|
||||
});
|
||||
|
||||
app.post('/v2/upload', updateUser, validateUser, extraRateLimit(10), upload.single('file'), async (req, res) => {
|
||||
app.post('/v2/upload', updateUser, validateUser, extraRateLimit(10), async (req, res) => {
|
||||
res.status(400).json({ message: "Image uploads are temporarily disabled." })
|
||||
return;
|
||||
|
||||
const file = req.file!;
|
||||
|
||||
const buffer = await readFileAsync(file.path);
|
||||
|
Loading…
x
Reference in New Issue
Block a user