UNPKG

@intuitionrobotics/file-upload

Version:

File Uploader - Express & Typescript based backend framework

21 lines 789 B
import {} from "../../shared/types.js"; import { BaseUploaderModule_Class, FileStatus, } from "../../shared/modules/BaseUploaderModule.js"; import { AxiosHttpModule, AxiosHttpModule_Class } from "@intuitionrobotics/thunderstorm/backend"; export class ServerUploaderModule_Class extends BaseUploaderModule_Class { constructor() { super(AxiosHttpModule, "ServerUploaderModule"); } init() { super.init(); AxiosHttpModule.setRequestOption(this.config.requestConfig); } upload(files) { return this.uploadImpl(files); } async subscribeToPush(_toSubscribe) { // Not sure now // We said timeout } } export const ServerUploaderModule = new ServerUploaderModule_Class(); //# sourceMappingURL=ServerUploaderModule.js.map