Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compressor plugin not called when using addFiles programmatically #5524

Open
2 tasks done
recyclerobot opened this issue Nov 24, 2024 · 0 comments
Open
2 tasks done
Labels

Comments

@recyclerobot
Copy link

recyclerobot commented Nov 24, 2024

Initial checklist

  • I understand this is a bug report and questions should be posted in the Community Forum
  • I searched issues and couldn’t find anything (or linked relevant results below)

Steps to reproduce

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'
  }
});

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant