shrink imagies

This commit is contained in:
john 2025-05-26 22:05:52 +02:00
parent 8457604da7
commit a6022d31c6
9 changed files with 131 additions and 39 deletions

View file

@ -42,7 +42,7 @@ export default function HomePage({ postsService, mediaService }: HomePageProps)
try {
const media = await Promise.all(
files.map(async ({ file, width, height }) => {
const { mediaId, url } = await mediaService.uploadFile(file)
const { mediaId, url } = await mediaService.uploadImage(file)
return {
mediaId,