Skip to main content

๐ŸŽƒ Uppy 1.22: Webcam camera source, Unsplash and maxTotalFileSize

ยท 2 min read

Uppy 1.22 (the spooky Halloween edition) adds a new Unsplash provider, Webcam camera selector dropdown and a maxTotalFileSize restriction.

Webcam Camera Sourceโ€‹

If your device has multiple cameras, you can now choose which one you want to use (if you allow the showVideoSourceDropdown option).

maxTotalFileSizeโ€‹

New maxTotalFileSize restriction makes sure the total size of all the files selected isnโ€™t over a certain threshold:

const uppy = new Uppy({
restrictions: {
maxTotalFileSize: 104857600,
},
});

Unsplashโ€‹

Unsplash is a popular website dedicated to sharing free stock photography. With a new Uppy plugin you can search for โ€œtrainsโ€, โ€œNew Yorkโ€ or โ€œHarry Potterโ€ images and upload them where needed:

The plugin launches in beta, but you can already try it out by installing @uppy/unsplash and upgrading @uppy/companion to the latest version (2.1.0).

Miscโ€‹

  • @uppy/companion: add option to hide welcome and metrics (#2521 / @szh)
  • @uppy/companion: add more test cases to companion tests (#2585 / @ifedapoolarewaju)
  • @uppy/companion: upgrade prometheus (fixes memory leak) (#2600 / @ifedapoolarewaju)
  • @uppy/locales: update th_TH.js (#2571 / @dogrocker)
  • @uppy/locales: add missing camera translations to de_DE (#2574 / @ferdiusa)
  • @uppy/locales: update el_GR.js with more proper wording for Drag'n'Drop (#2578 / @aalepis)
  • @uppy/core: add postprocess progress when upload success (#2535 / @mejiaej)
  • @uppy/react: Webpack5: Fix react imports (#2589 / @olemoign)
  • @uppy/thumbnail-generator: Add support for png thumbnails (#2603 / @SxDx)
  • website: mobile issues fixes + compact Companion migration table (#2593 / @nqst)

As always, you can find the full list of changes and package versions, as well as future plans, in our changelog.