now it’s window._uppy and addFile is window._uppy.addFile
@@ -96,8 +96,8 @@ class Uppy {
if (this.opts.debug) {
global.UppyState = this.state
global.uppyLog = ''
- global.UppyAddFile = this.addFile.bind(this)
- global._Uppy = this
+ // global.UppyAddFile = this.addFile.bind(this)
+ global._uppy = this
}
@@ -9,7 +9,7 @@ function uppySelectFakeFile () {
['data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgMTIwIDEyMCI+CiAgPGNpcmNsZSBjeD0iNjAiIGN5PSI2MCIgcj0iNTAiLz4KPC9zdmc+Cg=='],
{type: 'image/svg+xml'}
)
- window.UppyAddFile({
+ window._uppy.addFile({
source: 'acceptance-test',
name: 'test-file',
type: 'image/svg+xml',