This commit is contained in:
c
2025-03-12 20:11:03 +08:00
commit 70b7c82c97
1178 changed files with 148185 additions and 0 deletions
@@ -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
})
})
}
}