uppy
Version:
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:
20 lines (16 loc) • 412 B
JavaScript
import Plugin from '../../src/core/Plugin'
export default class InvalidPluginWithoutType extends Plugin {
constructor (uppy, opts) {
super(uppy, opts)
this.id = 'InvalidPluginWithoutType'
this.name = this.constructor.name
}
run (results) {
this.uppy.log({
class: this.constructor.name,
method: 'run',
results: results
})
return Promise.resolve('success')
}
}