From 8c33edcc9f75d8b6c8b19a10c0cc3301ad789706 Mon Sep 17 00:00:00 2001 From: Maximilian Harz Date: Thu, 29 May 2025 19:30:45 +0200 Subject: [PATCH] upload blob --- .../ContributionForm/ContributionForm.vue | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) diff --git a/webapp/components/ContributionForm/ContributionForm.vue b/webapp/components/ContributionForm/ContributionForm.vue index 2a8ce6f77..19685b2c9 100644 --- a/webapp/components/ContributionForm/ContributionForm.vue +++ b/webapp/components/ContributionForm/ContributionForm.vue @@ -438,25 +438,10 @@ export default { const fileName = src.split('/').pop() const blob = await urlToBlob(src) return { - name: fileName, - type: 'image/jpeg', - upload: { - uuid: 'c0a81271-3901-456d-b642-1fbebdf29097', - progress: 0, - total: 779384, - bytesSent: 0, - filename: '299551939_5382369645175932_651167422159851441_n.jpeg', - chunked: false, - totalChunkCount: 1, - }, - } - /* - return { - upload: new File([blob], fileName, { type: 'image/jpeg' }), + upload: blob, name: fileName, type: 'image/jpeg', } - */ }), )