UNPKG

@lucidcms/core

Version:

The core of the Lucid CMS. It's responsible for spinning up the API and serving the CMS.

2 lines 523 B
import{copy as e}from"../../../libs/i18n/copy.mjs";import t from"../../../utils/helpers/format-bytes.mjs";const n=async(n,r)=>{let i=n.config.media.limits.uploadBytes;return r.size>i?{error:{type:`basic`,message:e(`server:core.files.validation.size.limit.exceeded`,{data:{size:t(i)}}),status:500,errors:{file:{code:`storage`,message:e(`server:core.files.validation.size.limit.exceeded`,{data:{size:t(i)}})}}},data:void 0}:{error:void 0,data:void 0}};export{n as default}; //# sourceMappingURL=check-can-update-media.mjs.map