文件(或文件)上传的loopback-component-storage doc说:
loopback documentation
描述:
Upload one or more files into the specified container. The request
@H_403_13@
body must use multipart/form-data which the file input type for HTML
uses.方法:
upload(req,res,cb)
@H_403_13@REST URI:
POST
@H_403_13@
/api/containers/:container/upload有人请展示如何在Angular / Javascript中创建此multipart / form请求的示例吗?
最佳答案