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.

Change Uppy object configuration on flight

See original GitHub issue

Hi

is there any way to change uppy options onflight in already instantiated uppy object?

I mean something like this:

const uppy = Uppy({
  allowMultipleUploads: false,
  restrictions: {
    maxFileSize: 1000,
    maxNumberOfFiles: 1,
    minNumberOfFiles: 1,
    allowedFileTypes: ["image/*"]
  },
  autoProceed: false
});

// change restrictions
uppy.setConfigs({ restrictions: { maxNumberOfFiles: null } });

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:7

github_iconTop GitHub Comments

4reactions
arturicommented, Nov 8, 2019

uppy.setOptions() API has been released in the latest @uppy/core@1.6.0!

0reactions
arturicommented, Aug 30, 2019

@IvoMiranda Try https://uppy.io/docs/uppy/#uppy-close, it should destroy the instance.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Dynamically updating options in Uppy plugins, uppy.getPlugin ...
Our fundamental need is to change the locale dynamically, but changing options of the uppy config dynamically, like meta info, ...
Read more >
const - Uppy
This can be achieved by fetching the file, then creating a Blob object, or using the Url plugin with Companion.
Read more >
Migration guides - Uppy
Migration guides. These cover all the major Uppy versions and how to migrate to them. Migrate from Robodog to Uppy plugins. Uppy is...
Read more >
Dashboard - Uppy
Configuring this enables the “edit” button on file cards. Each object requires: id , the name of the meta field. Note: this will...
Read more >
Common Plugin Options - Uppy
By default, the plugin's name is used, so usually it does not need to be configured manually. Use this if you need to...
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