mirror of
https://github.com/diced/zipline.git
synced 2025-12-12 07:40:45 -08:00
fix: reject partials on normal upload
This commit is contained in:
@@ -67,6 +67,8 @@ export default fastifyPlugin(
|
||||
const options = parseHeaders(req.headers, config.files);
|
||||
if (options.header) return res.badRequest('bad options, receieved: ' + JSON.stringify(options));
|
||||
|
||||
if (options.partial) return res.badRequest('bad options, receieved: partial upload');
|
||||
|
||||
let folder = null;
|
||||
if (options.folder) {
|
||||
folder = await prisma.folder.findFirst({
|
||||
|
||||
Reference in New Issue
Block a user