question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Multiple plugins vs multiple instances

See original GitHub issue

Hey @goto-bus-stop @arturi, back again with a question. I was trying to upgrade my code to use the AwsS3 plugin (currently, it was only using the Transloadit plugin and no UI), and got stumped on one thing.

Can I use both the AwsS3 and Transloadit plugin on the same instance? In other words, something like this -

  const uppy = Uppy({ autoProceed: true })
    .use(Tus10)
    .use(Transloadit, transloaditParams)
    .use(AwsS3)
   // ...  bunch of .on handlers
    .run()

In this case, what happens when I do addFile? Does it use the S3 plugin or the Transloadit plugin? Or is that not recommended?

If not, my alternative solution was creating two components - <S3Uploader /> and <TransloaditUploader /> each of which would initialize a separate Uppy instance. Do you see any issues with multiple instances of Uppy running? Perhaps with the Redux store setup?

Thank you!

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

4reactions
jponsencommented, Apr 8, 2020

Any update on the question of @mrsweaters? I need different destinations for video/images.

3reactions
mrsweaterscommented, Apr 8, 2020

I’m experiencing the same issue. Is it possible to have multiple uploaders and specify which uploader based on file type?

For instance:

['image/*'] -> AwsS3Multipart
['text/html'] -> CustomUploader
Read more comments on GitHub >

github_iconTop Results From Across the Web

Using Multiple Instances of the Same Plugin
Sometimes it's useful to use multiple instances of the same plugin, one right after the other. It helps in cases where you want...
Read more >
Multiple Instances of plugins versus Multitimbral Instruments
I want to know about the pros and cons of creating multiple instances of software instruments compared to creating the Multi-timbral version of...
Read more >
Running multiple Instances / using Standalone and Plugin ...
You can have multiple instances in the same process be the master, for example multiple instances in your sequencer. However, if any instance...
Read more >
Should you use Large Plugins or Multiple Small Plugins?
There is a lot of controversy around large plugins being worse than multiple small plugins, but is it true?
Read more >
Solved - One big plugin or multiple small plugins - SpigotMC
Currently I am developing a big plugin that consists of multiple “modules” (chat, bans, fun commands and etc), packaged as one big plugin....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found