info
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
import Uploader from './base';
|
||||
import UploaderFile from "./struct/upload-file";
|
||||
|
||||
export class FromURLUploader extends Uploader {
|
||||
constructor(props) {
|
||||
super(props);
|
||||
}
|
||||
|
||||
normalizeFiles(files) {
|
||||
return files.map(file => {
|
||||
return new UploaderFile({
|
||||
id: file.id,
|
||||
name: file.name,
|
||||
originUrl: file.url,
|
||||
thumbUrl: file.thumbUrl || file.url,
|
||||
mediaType: file.mediaType
|
||||
})
|
||||
})
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user