logto-io / logto

🧑‍🚀 The better identity infrastructure for developers and the open-source alternative to Auth0.
https://logto.io
Mozilla Public License 2.0
8.15k stars 395 forks source link

refactor(console,core,schemas): unify image upload size limit on both frontend and backend #6247

Closed charIeszhao closed 1 month ago

charIeszhao commented 1 month ago

Summary

Testing

Locally tested

Checklist

github-actions[bot] commented 1 month ago

COMPARE TO master

Total Size Diff :chart_with_upwards_trend: +42 Bytes

Diff by File |Name|Diff| |---|---| |.changeset/cyan-papayas-count.md|:chart_with_upwards_trend: +151 Bytes| |packages/console/src/ds-components/Uploader/FileUploader/index.tsx|:chart_with_upwards_trend: +96 Bytes| |packages/console/src/ds-components/Uploader/ImageUploader/index.tsx|:chart_with_upwards_trend: +79 Bytes| |packages/console/src/hooks/use-image-mime-types.ts|:chart_with_upwards_trend: +35 Bytes| |packages/core/src/routes-me/user-assets.ts|:chart_with_upwards_trend: +22 Bytes| |packages/core/src/routes/user-assets.ts|:chart_with_upwards_trend: +22 Bytes| |packages/schemas/src/types/user-assets.ts|:chart_with_upwards_trend: +57 Bytes|
charIeszhao commented 1 month ago

The API might also be used to upload other type of files, not limited to images. So after a brief internal discussion I'm closing the ticket...