diff options
| author | Adam Soltys <[email protected]> | 2024-04-22 22:32:32 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2024-04-22 22:32:36 -0700 |
| commit | 1c184f2af7c6a11c779b64b936f45f3d4902c199 (patch) | |
| tree | 11d8bac2d8433eaff875a6c864efede1cf861016 /lib/upload.js | |
| parent | 0fb1c0363e3f3f87b5fc67b44027a263e269fa25 (diff) | |
| download | coinos-server-1c184f2af7c6a11c779b64b936f45f3d4902c199.tar.gz coinos-server-1c184f2af7c6a11c779b64b936f45f3d4902c199.zip | |
increase max file size
Diffstat (limited to 'lib/upload.js')
| -rw-r--r-- | lib/upload.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/upload.js b/lib/upload.js index 5a91caa4..0b558acf 100644 --- a/lib/upload.js +++ b/lib/upload.js @@ -45,7 +45,7 @@ export default async (req, res) => { if (format !== "image" && !["jpg", "jpeg", "png"].includes(ext)) fail("unsupported file type"); - let t = sharp().rotate().resize(width).webp(); + let t = sharp({ failOnError: false }).rotate().resize(width).webp(); let processedBuffer = await streamToBuffer(s2.pipe(t)); let hash = crypto |
