transloadit / uppy

The next open source file uploader for web browsers :dog:
https://uppy.io
MIT License
29.23k stars 2.01k forks source link

`validateRestrictions` is undefined #5508

Open TheDutchCoder opened 2 weeks ago

TheDutchCoder commented 2 weeks ago

Initial checklist

Link to runnable example

No response

Steps to reproduce

I'm updating our uppy-related dependencies:

from:

    "@uppy/aws-s3": "^3.6.2",
    "@uppy/core": "^3.13.1",
    "@uppy/thumbnail-generator": "^3.1.0",

to:

    "@uppy/aws-s3": "^4.1.1",
    "@uppy/core": "^4.2.3",
    "@uppy/thumbnail-generator": "^4.0.1",

And when I upload a file and run uppy.validateRestrictions({}) I get an error this.uppy.validateRestrictions is not a function (this is in Vue, and this.uppy is indeed the Uppy instance, I've verified that.

I see no migration notes or deprecation notes on this, so I'm assuming it's a real issue.

Expected behavior

validateRestrictions to exist on the Uppy instance.

Actual behavior

validateRestrictions is undefined on the Uppy instance.