vocascan / vocascan-server

Server for Vocascan
https://vocascan.com
Apache License 2.0
26 stars 5 forks source link

Fix/body parser #96

Closed noctera closed 1 year ago

noctera commented 1 year ago
Status Type Env Vars Change
:white_check_mark: Ready Bug Yes

Description

This PR will fix issue vocascan/vocascan-frontend#142 to support custom file upload sizes.

just add the following property in you vocascan.config.js

server: {
    ...
    max_file_upload: '1mb', // 1kb, 1mb, 1gb
 },

I have added this variable setting to the /info route to make the value accessible for the client (more specific error messages)

Motivation and Context

Without this setting you couldn't import much vocabs, as the default limit was very small

Screenshots / GIFs (if appropriate):

Checklist

Resolves

vocascan/vocascan-fronten#142