我正在使用带有rest api后端的ng2-file-upload,没有multer 想知道,如果ng2-file-upload内部正在进行http发布,或者我们需要创建一个服务来做http post
我从演示中获取了代码 https://valor-software.com/ng2-file-upload/
public uploader:FileUploader = new FileUploader({url: URL,maxFileSize:
maxFileSize,autoUpload:true});
public hasBaseDropZoneOver:boolean = false;
public hasAnotherDropZoneOver:boolean = false;
public fileOverBase(e:any):void {
this.hasBaseDropZoneOver = e;
}
public fileOverAnother(e:any):void {
this.hasAnotherDropZoneOver = e;
}
}