fix: add sizeInBytes for upload providers (#19593)

This commit is contained in:
Giulio Montagner 2024-02-23 11:37:26 +01:00 committed by GitHub
parent 898f8ae81b
commit f8af92b375
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 4 additions and 0 deletions

View File

@ -89,6 +89,7 @@ module.exports = ({ strapi }) => ({
ext,
mime: type,
size: bytesToKbytes(size),
sizeInBytes: size,
};
const { refId, ref, field } = metas;

View File

@ -27,6 +27,7 @@ export interface File {
ext?: string;
mime: string;
size: number;
sizeInBytes: number;
url: string;
previewUrl?: string;
path?: string;

View File

@ -14,6 +14,7 @@ interface File {
ext?: string;
mime: string;
size: number;
sizeInBytes: number;
url: string;
previewUrl?: string;
path?: string;

View File

@ -15,6 +15,7 @@ interface File {
ext?: string;
mime: string;
size: number;
sizeInBytes: number;
url: string;
previewUrl?: string;
path?: string;