@uppy/core
Version:
Core module for the extensible JavaScript file upload widget with support for drag&drop, resumable uploads, previews, restrictions, file processing/encoding, remote providers like Instagram, Dropbox, Google Drive, S3 and more :dog:
25 lines (19 loc) • 508 B
text/typescript
import UIPlugin from '../UIPlugin.js'
import type Uppy from '../Uppy.js'
export default class InvalidPluginWithoutName extends UIPlugin<any, any, any> {
public type: string
public name: string
constructor(uppy: Uppy<any, any>, opts?: any) {
super(uppy, opts)
this.type = 'acquirer'
this.name = this.constructor.name
}
run(results: any) {
this.uppy.log({
class: this.constructor.name,
method: 'run',
results,
})
return Promise.resolve('success')
}
}