Skip to content

Commit c501b31

Browse files
committed
chore: fix fastify/multipart issue
1 parent 8cde98c commit c501b31

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

package-lock.json

+3-3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@forscht/ddrive",
3-
"version": "4.0.1",
3+
"version": "4.1.0",
44
"description": "A lightweight cloud storage system using discord as storage device written in nodejs",
55
"main": "src/index.js",
66
"author": "Darshan Patel <[email protected]> (https://github.com/forscht/ddrive)",
@@ -15,6 +15,7 @@
1515
},
1616
"scripts": {
1717
"start": "node bin/ddrive",
18+
"railway": "npm run migration:up && npm start",
1819
"lint": "eslint --ext mjs,js,ts . --ignore-pattern 'src/HTTP/static'",
1920
"migration:latest": "knex migrate:latest",
2021
"migration:up": "knex migrate:up",

src/HTTP/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ module.exports = (dfs, opts) => {
1717
commonSchemas.forEach((schema) => fastify.addSchema(schema))
1818

1919
// Enable Multipart upload
20-
fastify.register(FastifyMultipart)
20+
fastify.register(FastifyMultipart, { limits: { fileSize: Infinity } })
2121

2222
// Load Auth and then register the routes
2323
fastify.decorate('basicAuth', Auth(opts.authOpts))

0 commit comments

Comments
 (0)