Open recyclerobot opened 1 day ago
define a new uppy with compressor plugin:
new Uppy({ autoProceed: true }) .use(Compressor, { convertSize: Infinity }) .use(ImageEditor) .use(Tus, { endpoint: "/api/upload" })
call uppy.addFile
const generatedId = uppy.addFile({ id: v4(), data: blob, name: filename ?? "clipboard-image.png", type: type ?? "image/png", meta: { ourInternalId: 'xxx' } });
compress the image and upload
uncompressed image is uploaded.
Using the dashboard, the image does get compressed, only when calling uppy programmatically it won't compress
Initial checklist
Steps to reproduce
define a new uppy with compressor plugin:
call uppy.addFile
Expected behavior
compress the image and upload
Actual behavior
uncompressed image is uploaded.
Using the dashboard, the image does get compressed, only when calling uppy programmatically it won't compress